summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org63
1 files changed, 35 insertions, 28 deletions
diff --git a/jakob.org b/jakob.org
index c27568d..f98b92a 100644
--- a/jakob.org
+++ b/jakob.org
@@ -836,6 +836,15 @@ Transformer to highlight channels in the =completing-read= of
'irc-switch-buffer-transformer))
#+END_SRC
+* Counsel
+
+#+BEGIN_SRC elisp
+(use-package counsel
+ :bind
+ (:map org-mode-map
+ ("C-c C-q" . counsel-org-tag)))
+#+END_SRC
+
* Dired
Hide the targets of symbolic links in dired listings. This is just a visual
@@ -951,19 +960,19 @@ simulation keys for tab switching. Simulation keys is also disabled for kitty
because it gets in the way of readline.
#+BEGIN_SRC elisp
-:hook
-(exwm-manage-finish . (lambda ()
- (when (and exwm-class-name
- (string= exwm-class-name "Firefox"))
- (exwm-input-set-local-simulation-keys
- (concatenate 'list
- exwm-input-simulation-keys
- '(([?\C-q] . [?\C-w])))))
- (when (and exwm-class-name
- (or
- (string= exwm-class-name "kitty")
- (string= exwm-class-name "mutt")))
- (exwm-input-set-local-simulation-keys nil))))
+ :hook
+ (exwm-manage-finish . (lambda ()
+ (when (and exwm-class-name
+ (string= exwm-class-name "Firefox"))
+ (exwm-input-set-local-simulation-keys
+ (concatenate 'list
+ exwm-input-simulation-keys
+ '(([?\C-q] . [?\C-w])))))
+ (when (and exwm-class-name
+ (or
+ (string= exwm-class-name "kitty")
+ (string= exwm-class-name "mutt")))
+ (exwm-input-set-local-simulation-keys nil))))
#+END_SRC
EXWM's buffers are named =*EXWM*= upon creation, which makes switching between
@@ -1058,8 +1067,7 @@ Scale up embedded LaTeX so that I can actually read it.
Replace my [[Imenu]] binding with =org-goto=, as it allows me to select headings with
subheadings. Keybindings for working with my Org workflow from anywhere are also
-here, as are rebindings for [[Counsel]] because =use-package= doesn't like split =:bind=
-declarations.
+here, since =use-package= doesn't like split =:bind= declarations.
#+BEGIN_SRC elisp
:init
@@ -1071,17 +1079,9 @@ declarations.
("C-c c" . (lambda () (interactive) (org-capture nil "c")))
("C-c t" . (lambda () (interactive) (org-capture nil "t")))
:map org-mode-map
- ("C-c C-q" . counsel-org-tag)
("C-c s" . org-goto))
#+END_SRC
-Enable [[Yasnippet]].
-
-#+BEGIN_SRC elisp
- :hook
- (org-mode . yas-minor-mode-on)
-#+END_SRC
-
** Personal Wiki
I maintain somewhat of a "personal wiki" using Org and I like to link between
@@ -1259,8 +1259,19 @@ closest thing I will ever have to an implementation of =ag= for my thoughts.
* Yasnippet
+Load all snippets when =yas-minor-mode= is enabled.
+
+#+BEGIN_SRC elisp
+(use-package yasnippet
+ :hook
+ (yas-minor-mode . yas-reload-all)
+#+END_SRC
+
+Enable Yasnippet for [[Org]].
+
#+BEGIN_SRC elisp
-(use-package yasnippet)
+ :hook
+ (org-mode . yas-minor-mode-on))
#+END_SRC
* Elfeed
@@ -1730,8 +1741,6 @@ Enable [[company]], ElDoc, and racer.
#+BEGIN_SRC elisp
(use-package racer
- :after company
-
:init
(setq racer-cmd "~/.cargo/bin/racer")
(setq racer-rust-src-path "~/Code/rust/src")
@@ -1741,8 +1750,6 @@ Enable [[company]], ElDoc, and racer.
(racer-mode . company-mode))
(use-package rust-mode
- :after racer
-
:hook
(rust-mode . racer-mode))
#+END_SRC

© 2015 - 2026 Jakob L. Kreuze