diff options
Diffstat (limited to 'attic/elisp')
-rw-r--r-- | attic/elisp/misc.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el index 3e31fc0..90d4639 100644 --- a/attic/elisp/misc.el +++ b/attic/elisp/misc.el @@ -564,6 +564,23 @@ (jao-notmuch-tree--next t t exit)) +;;; imenu +(use-package imenu + :config + (defun jao-imenu-hook () + (unless (featurep 'pulsar) + (cond ((derived-mode-p 'org-mode) (org-reveal t)) + (outline-minor-mode (outline-show-entry)) + ((derived-mode-p 'outline-mode) (outline-show-entry))))) + + (add-hook 'imenu-after-jump-hook #'jao-imenu-hook)) + +;;; elpher/gemini +(use-package elpher :ensure t) +(defun jao-elpher--browse (url &rest _) (elpher-go url)) +(add-to-list 'browse-url-handlers + '("^\\(gemini\\|gopher\\)://.*" . jao-elpher--browse)) + ;;; snippets (defun jao-sway-run-or-focus-tidal () (interactive) |