From: Andreas Gerler Date: Fri, 4 Oct 2019 13:33:00 +0000 (+0200) Subject: add bba-open-file-system X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=f134db161d8653726a5d2af4f67a878f33bc8dfe;p=emacsconfig.git add bba-open-file-system --- diff --git a/bba.org b/bba.org index 6c4019d9..6c78d7db 100644 --- 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]