summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org60
1 files changed, 33 insertions, 27 deletions
diff --git a/jakob.org b/jakob.org
index c3c81c5..3f8aaed 100644
--- a/jakob.org
+++ b/jakob.org
@@ -1066,6 +1066,13 @@ declarations.
("C-c s" . org-goto))
#+END_SRC
+Enable [[Yasnippet]].
+
+#+BEGIN_SRC elisp
+ :hook
+ (org-mode . yas-minor-mode)
+#+END_SRC
+
** Personal Wiki
I maintain somewhat of a "personal wiki" using Org and I like to link between
@@ -1243,12 +1250,8 @@ closest thing I will ever have to an implementation of =ag= for my thoughts.
* Yasnippet
-Enable Yasnippet globally.
-
#+BEGIN_SRC elisp
-(use-package yasnippet
- :config
- (yas-global-mode))
+(use-package yasnippet)
#+END_SRC
* Elfeed
@@ -1623,10 +1626,8 @@ here.
#+BEGIN_SRC elisp
(use-package dim
:config
- (dim-minor-name 'eldoc-mode "")
(dim-minor-name 'visual-line-mode "")
- (dim-minor-name 'ivy-mode "")
- (dim-minor-name 'yas-minor-mode ""))
+ (dim-minor-name 'ivy-mode ""))
#+END_SRC
* dumb-jump
@@ -1659,16 +1660,6 @@ code, keybindings, symbol properties, and more.
("C-c C-d" . helpful-at-point)))
#+END_SRC
-* cc
-
-Generally, I adhere to the [[https://www.kernel.org/doc/html/v4.10/process/coding-style.html][Linux kernel coding style]].
-
-#+BEGIN_SRC elisp
-(use-package cc-mode
- :hook
- (c-mode . (lambda () (c-set-style "linux"))))
-#+END_SRC
-
* company
Start suggesting completions ASAP.
@@ -1688,15 +1679,7 @@ Use standard movement keys instead of those used for minibuffer next/previous.
("M-n" . nil)
("M-p" . nil)
("C-n" . #'company-select-next)
- ("C-p" . #'company-select-previous))
-#+END_SRC
-
-Enable company-mode for a few modes.
-
-#+BEGIN_SRC elisp
- :hook
- (lisp-interaction-mode . company-mode)
- (emacs-lisp-mode . company-mode))
+ ("C-p" . #'company-select-previous)))
#+END_SRC
* Flycheck
@@ -1740,3 +1723,26 @@ Enable flycheck.
(flycheck-mode . flycheck-rust-setup)
(rust-mode . flycheck-mode))
#+END_SRC
+
+** C
+
+Generally, I adhere to the [[https://www.kernel.org/doc/html/v4.10/process/coding-style.html][Linux kernel coding style]].
+
+#+BEGIN_SRC elisp
+(use-package cc-mode
+ :hook
+ (c-mode . (lambda () (c-set-style "linux"))))
+#+END_SRC
+
+** Emacs Lisp
+
+Enable [[company]].
+
+#+BEGIN_SRC elisp
+(use-package elisp-mode
+ :ensure nil
+
+ :hook
+ (lisp-interaction-mode . company-mode)
+ (emacs-lisp-mode . company-mode))
+#+END_SRC

© 2015 - 2026 Jakob L. Kreuze