Skip to content

Instantly share code, notes, and snippets.

@aoba17
Created August 29, 2020 10:04
Show Gist options
  • Save aoba17/968bcf17f59ae282e9f5da3f695d6c5a to your computer and use it in GitHub Desktop.
Save aoba17/968bcf17f59ae282e9f5da3f695d6c5a to your computer and use it in GitHub Desktop.
TreemacsからQuickLookを呼び出す
(defun quick-look-dwim()
(interactive)
(call-process-shell-command
(format "qlmanage %s -p &>/dev/null"
(treemacs--nearest-path (treemacs-current-button)))
nil 0))
(with-eval-after-load "treemacs"
(define-key treemacs-mode-map (kbd "SPC") 'quick-look-dwim))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment