Compare commits
2 Commits
2a89e1ded3
...
f5e15b2784
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5e15b2784
|
||
|
|
5651db78c0
|
27
README.org
27
README.org
@@ -314,6 +314,9 @@ keep the loading order in mind when doing so.
|
|||||||
(epa-file-enable)
|
(epa-file-enable)
|
||||||
(setq epg-pinentry-mode 'loopback)
|
(setq epg-pinentry-mode 'loopback)
|
||||||
(setq epa-file-encrypt-to '("xulfer@cheapbsd.net"))
|
(setq epa-file-encrypt-to '("xulfer@cheapbsd.net"))
|
||||||
|
:hook
|
||||||
|
(prog-mode-hook . flyspell-prog-mode)
|
||||||
|
(text-mode-hook . flyspell-mode)
|
||||||
:custom
|
:custom
|
||||||
(scroll-conservatively 101 "Scroll just enough to bring text into view")
|
(scroll-conservatively 101 "Scroll just enough to bring text into view")
|
||||||
(enable-recursive-minibuffers t "Allow minibuffer commands in minibuffer")
|
(enable-recursive-minibuffers t "Allow minibuffer commands in minibuffer")
|
||||||
@@ -1725,6 +1728,30 @@ taking tool has.
|
|||||||
org-roam-ui-open-on-start t))
|
org-roam-ui-open-on-start t))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* Snippets
|
||||||
|
|
||||||
|
Snippets can be helpful in many situations. However they can also get in the way.
|
||||||
|
This is my *attempt* at making them helpful in most cases.
|
||||||
|
|
||||||
|
** YASnippet
|
||||||
|
|
||||||
|
[[https://github.com/joaotavora/yasnippet?tab=readme-ov-file][YASnippet]] is a template system for Emacs. It allows you to type an abbreviation
|
||||||
|
and automatically expand it into function templates.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package yasnippet
|
||||||
|
:hook (prog-mode . yas-minor-mode))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
For now I'm just using [[https://github.com/AndreaCrotti/yasnippet-snippets][YASnippet-snippets]] to provide all of my snippets. Custom
|
||||||
|
ones may be added in the future.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package yasnippet-snippets
|
||||||
|
:after (yasnippet)
|
||||||
|
:init (yas-reload-all))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Optional Customizations
|
* Optional Customizations
|
||||||
|
|
||||||
Some of these seem to work well on any system so far, but won't automatically
|
Some of these seem to work well on any system so far, but won't automatically
|
||||||
|
|||||||
@@ -242,6 +242,8 @@ features.
|
|||||||
|
|
||||||
#+INCLUDE: "config/org_mode.org" :minlevel 1
|
#+INCLUDE: "config/org_mode.org" :minlevel 1
|
||||||
|
|
||||||
|
#+INCLUDE: "config/snippets.org" :minlevel 1
|
||||||
|
|
||||||
#+INCLUDE: "config/custom.org" :minlevel 1
|
#+INCLUDE: "config/custom.org" :minlevel 1
|
||||||
|
|
||||||
#+begin_src emacs-lisp :exports none
|
#+begin_src emacs-lisp :exports none
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ keep the loading order in mind when doing so.
|
|||||||
(epa-file-enable)
|
(epa-file-enable)
|
||||||
(setq epg-pinentry-mode 'loopback)
|
(setq epg-pinentry-mode 'loopback)
|
||||||
(setq epa-file-encrypt-to '("xulfer@cheapbsd.net"))
|
(setq epa-file-encrypt-to '("xulfer@cheapbsd.net"))
|
||||||
|
:hook
|
||||||
|
(prog-mode-hook . flyspell-prog-mode)
|
||||||
|
(text-mode-hook . flyspell-mode)
|
||||||
:custom
|
:custom
|
||||||
(scroll-conservatively 101 "Scroll just enough to bring text into view")
|
(scroll-conservatively 101 "Scroll just enough to bring text into view")
|
||||||
(enable-recursive-minibuffers t "Allow minibuffer commands in minibuffer")
|
(enable-recursive-minibuffers t "Allow minibuffer commands in minibuffer")
|
||||||
|
|||||||
23
config/snippets.org
Normal file
23
config/snippets.org
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
* Snippets
|
||||||
|
|
||||||
|
Snippets can be helpful in many situations. However they can also get in the way.
|
||||||
|
This is my *attempt* at making them helpful in most cases.
|
||||||
|
|
||||||
|
** YASnippet
|
||||||
|
|
||||||
|
[[https://github.com/joaotavora/yasnippet?tab=readme-ov-file][YASnippet]] is a template system for Emacs. It allows you to type an abbreviation
|
||||||
|
and automatically expand it into function templates.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package yasnippet
|
||||||
|
:hook (prog-mode . yas-minor-mode))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
For now I'm just using [[https://github.com/AndreaCrotti/yasnippet-snippets][YASnippet-snippets]] to provide all of my snippets. Custom
|
||||||
|
ones may be added in the future.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package yasnippet-snippets
|
||||||
|
:after (yasnippet)
|
||||||
|
:init (yas-reload-all))
|
||||||
|
#+END_SRC
|
||||||
Reference in New Issue
Block a user