]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
add bba-open-file-system
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 4 Oct 2019 13:33:00 +0000 (15:33 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 4 Oct 2019 13:33:00 +0000 (15:33 +0200)
bba.org

diff --git a/bba.org b/bba.org
index 6c4019d951de079bda6f24d53fe6d76368578be4..6c78d7db8ff753fa6e7f5049d21d33136e4aff9d 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -1265,6 +1265,20 @@ Sometimes you need a file finder in the current buffers directory.
 
 #+END_SRC
 
+** open current file via osx open
+[2017-06-07 Wed 13:50]
+
+#+BEGIN_SRC emacs-lisp :tangle yes
+  (defun bba-open-file-system ()
+    "Open the current file via osx open."
+    (interactive)
+    (if (string-equal system-type "darwin")
+       (shell-command (concat "open " (buffer-file-name)))
+      )
+    )
+
+#+END_SRC
+
 ** open current directory in iterm screen
 [2017-02-14 Tue 12:24]