From 24f1cdb537363c71eeb3696b50e94507bf166086 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 4 Apr 2020 07:33:21 -0400 Subject: [PATCH] Make vuiet-mode better --- emacs/init.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/emacs/init.org b/emacs/init.org index e40beea..947d2a3 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -5793,6 +5793,12 @@ A music browser and player: vuiet--playing-track) :defer t :config + (defun vuiet-mode-setup () + ;; This is a hacky hack... + (run-at-time 1 nil #'read-only-mode) + (set (make-local-variable 'org-link-elisp-confirm-function) + nil)) + (add-hook 'vuiet-mode-hook #'vuiet-mode-setup) (defun vuiet-safe-update-mode-line () (interactive) (with-local-quit @@ -5808,7 +5814,8 @@ A music browser and player: (run-at-time t 1 #'vuiet-safe-update-mode-line))) (vuiet-reset-mode-line) :general - ((normal motion visual) vuiet-mode-map "q" #'quit-window)) + ((normal motion visual) vuiet-mode-map "q" #'quit-window) + ((normal motion visual) vuiet-mode-map "C-m" #'org-open-at-point)) #+END_SRC And a handy hydra for it: