Compare commits

...

3 commits

Author SHA1 Message Date
Payas Relekar
eaf4ebbfad doom: remove Hyperbole with Embark
In all the time that I've had Hyperbole installed, I've only ever used
it to open file paths, and only in Nix files. While the package is
versatile and quite useful, it is a heavy package and takes noticeable
time on first start.

OTOH I am just not discovering that the same use-case is covered by
Embark, is much more featherweight in comparison and is already loaded
and used by Doom by default. After trying out, while not 1:1
replacement, it is a good enough one, so I'm removing Hyperbole for now.
The keybindings, by virtue of being probably single most accessible one,
is now awarded to embark-dwim, but may be exchanged with embark-act in
future, depending on how I feel.  embark-act gets C-. for now, which
itself is also fairly accessible.
2023-11-11 16:02:45 +05:30
Payas Relekar
ddc0505537 doom: unset org-agenda-cycle keybinds
I use these for consult-imenu, and never use the default.
2023-11-11 16:01:59 +05:30
Payas Relekar
6743a23644 doom: move new bhankas-org-agenda-limit-indirect-* functions to bhankas.el 2023-11-11 13:54:12 +05:30

View file

@ -135,8 +135,6 @@ Tangle ~packages.el~ from within org-mode.
(package! bhankas
:recipe (:local-repo "~/git/bhankas.el"))
(package! hyperbole)
(package! org-wild-notifier)
(package! modus-themes)
@ -381,20 +379,13 @@ As such, relying on imperative config evaluation can turn into gotchas. While th
:init
(require 'ffap)
(setq! org-fold-core-style 'overlays)
(defun bhankas-org-agenda-limit-indirect-max (og-fun &rest args)
(setq bhankas-fit-buffer-limit-max t)
(apply og-fun args)
(makunbound bhankas-fit-buffer-limit-max))
(defun bhankas-org-agenda-limit-indirect-buffer (og-fun &rest args)
(when (boundp 'bhankas-fit-buffer-limit-max)
(setq args (append args '(20))))
(apply og-fun args))
:config
(map!
:map org-mode-map
:after (consult org)
:desc "imenu" :g "C-'" #'consult-imenu)
(keymap-unset org-mode-map "C-'")
(keymap-unset org-mode-map "C-,")
(setq! org-directory global-org-directory
org-archive-location (concat org-directory "archive/%s_archive::")
org-archive-subtree-add-inherited-tags t
@ -1015,19 +1006,15 @@ When Emacs is opened in Windows Subsystem for Linux, open web links in Firefox o
(tab-bar-mode 1))
#+end_src
** Hyperbole
- Rebind default hyperbole entry so it doesn't conflict with Gnus.
- I would have had been fine with letting it have ~M-RET~, but the alternate keybinding it defaults to is just bad.
- The one configured now (~C-SPC C-SPC~) isn't really best, but it will have to do.
** Embark
#+begin_src emacs-lisp :lexical t
(use-package! hyperbole
:commands (hyperbole-mode hkey-either)
(use-package! embark
:commands (embark-act embark-dwim)
:init
(map! :map global-map
"C-." #'embark-act
:leader
:desc "Hyperbole" "C-SPC" #'hkey-either)
:config
(hyperbole-mode 1))
:desc "Embark" "C-SPC" #'embark-dwim))
#+end_src
** Yasnippet