diff options
author | jao <jao@gnu.org> | 2022-09-26 04:26:01 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-26 20:42:10 +0100 |
commit | 7cea1859d427a553e6195fba9fc19e56f3fd26ea (patch) | |
tree | 72a190b461080486551284706d7db45f1e53a4cf /attic/elisp | |
parent | 46e40d80f1168755c13781a2df74c0a5b65a2a08 (diff) | |
download | elibs-7cea1859d427a553e6195fba9fc19e56f3fd26ea.tar.gz elibs-7cea1859d427a553e6195fba9fc19e56f3fd26ea.tar.bz2 |
pulsar tweaks
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) |