Skip to content

Instantly share code, notes, and snippets.

@dchrzanowski
Last active May 23, 2017 16:00
Show Gist options
  • Save dchrzanowski/cff2059dda0f4cf68a7b108ab3ae038d to your computer and use it in GitHub Desktop.
Save dchrzanowski/cff2059dda0f4cf68a7b108ab3ae038d to your computer and use it in GitHub Desktop.
;; -------------------------------------------------------------------------------------------------------------------------
;; 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