summaryrefslogtreecommitdiffhomepage
path: root/attic/elisp
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-26 04:26:01 +0100
committerjao <jao@gnu.org>2022-09-26 20:42:10 +0100
commit7cea1859d427a553e6195fba9fc19e56f3fd26ea (patch)
tree72a190b461080486551284706d7db45f1e53a4cf /attic/elisp
parent46e40d80f1168755c13781a2df74c0a5b65a2a08 (diff)
downloadelibs-7cea1859d427a553e6195fba9fc19e56f3fd26ea.tar.gz
elibs-7cea1859d427a553e6195fba9fc19e56f3fd26ea.tar.bz2
pulsar tweaks
Diffstat (limited to 'attic/elisp')
-rw-r--r--attic/elisp/misc.el17
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)