Last active
May 23, 2017 16:00
-
-
Save dchrzanowski/cff2059dda0f4cf68a7b108ab3ae038d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ------------------------------------------------------------------------------------------------------------------------- | |
;; Neo tree open xdg on point helpers | |
;; ------------------------------------------------------------------------------------------------------------------------- | |
(defun neotree-open-xdg-on-point () | |
"Open a file under point." | |
(interactive) | |
(call-process "xdg-open" nil 0 nil | |
(neo-buffer--get-filename-current-line))) | |
;; Add "o" as the key that will launch the function | |
(define-key neotree-mode-map (kbd "o") 'neotree-open-xdg-on-point) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment