Compare commits
5 Commits
2a89e1ded3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| be60ef18e1 | |||
|
|
d97bc43e9d
|
||
| 6f1750f82e | |||
|
|
f5e15b2784
|
||
|
|
5651db78c0
|
48
README.org
48
README.org
@@ -103,9 +103,9 @@ loading as a blank slate with only the scratch buffer open.
|
||||
(setq ring-bell-function #'ignore
|
||||
inhibit-startup-screen t)
|
||||
|
||||
(push '(font . "Victor Mono-13") default-frame-alist)
|
||||
(set-face-font 'default "Victor Mono-13")
|
||||
(set-face-font 'variable-pitch "Victor Mono-13")
|
||||
(push '(font . "Cartograph CF-11") default-frame-alist)
|
||||
(set-face-font 'default "Cartograph CF-11")
|
||||
(set-face-font 'variable-pitch "Cartograph CF-11")
|
||||
|
||||
(copy-face 'default 'fixed-pitch)
|
||||
|
||||
@@ -314,6 +314,9 @@ keep the loading order in mind when doing so.
|
||||
(epa-file-enable)
|
||||
(setq epg-pinentry-mode 'loopback)
|
||||
(setq epa-file-encrypt-to '("xulfer@cheapbsd.net"))
|
||||
:hook
|
||||
(prog-mode-hook . flyspell-prog-mode)
|
||||
(text-mode-hook . flyspell-mode)
|
||||
:custom
|
||||
(scroll-conservatively 101 "Scroll just enough to bring text into view")
|
||||
(enable-recursive-minibuffers t "Allow minibuffer commands in minibuffer")
|
||||
@@ -483,6 +486,18 @@ on a system by system basis.
|
||||
;;;
|
||||
#+end_src
|
||||
|
||||
For now I have org-social enabled by default. It looks promising and doesn't add
|
||||
any substantial bloat so why not.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package org-social
|
||||
:ensure t
|
||||
:config
|
||||
(setq org-social-file "~/repos/xulfer.srht.site/social.org"
|
||||
org-social-relay "https://relay.org-social.org"
|
||||
org-social-my-public-url "https://xulfer.srht.site/social.org"))
|
||||
#+END_SRC
|
||||
|
||||
* Modal Editing
|
||||
|
||||
I like using =vi= inspired modal editing. For a while I tried project evil, but
|
||||
@@ -1432,7 +1447,7 @@ the future.
|
||||
:files ("*.el"))
|
||||
:no-require t
|
||||
:init
|
||||
(customize-set-variable 'frame-background-mode 'dark)
|
||||
(customize-set-variable 'frame-background-mode 'light)
|
||||
(load-theme 'solarized t))
|
||||
#+end_src
|
||||
|
||||
@@ -1471,6 +1486,7 @@ forge support really.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package magit
|
||||
:defer t
|
||||
:bind (("C-c M" . magit-dispatch))
|
||||
:custom
|
||||
(magit-repository-directories (list (cons elpaca-repos-directory 1)))
|
||||
(magit-diff-refine-hunk 'all)
|
||||
@@ -1725,6 +1741,30 @@ taking tool has.
|
||||
org-roam-ui-open-on-start t))
|
||||
#+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
|
||||
|
||||
Some of these seem to work well on any system so far, but won't automatically
|
||||
|
||||
@@ -103,9 +103,9 @@ loading as a blank slate with only the scratch buffer open.
|
||||
(setq ring-bell-function #'ignore
|
||||
inhibit-startup-screen t)
|
||||
|
||||
(push '(font . "Victor Mono-13") default-frame-alist)
|
||||
(set-face-font 'default "Victor Mono-13")
|
||||
(set-face-font 'variable-pitch "Victor Mono-13")
|
||||
(push '(font . "Cartograph CF-11") default-frame-alist)
|
||||
(set-face-font 'default "Cartograph CF-11")
|
||||
(set-face-font 'variable-pitch "Cartograph CF-11")
|
||||
|
||||
(copy-face 'default 'fixed-pitch)
|
||||
|
||||
@@ -242,6 +242,8 @@ features.
|
||||
|
||||
#+INCLUDE: "config/org_mode.org" :minlevel 1
|
||||
|
||||
#+INCLUDE: "config/snippets.org" :minlevel 1
|
||||
|
||||
#+INCLUDE: "config/custom.org" :minlevel 1
|
||||
|
||||
#+begin_src emacs-lisp :exports none
|
||||
|
||||
@@ -32,6 +32,9 @@ keep the loading order in mind when doing so.
|
||||
(epa-file-enable)
|
||||
(setq epg-pinentry-mode 'loopback)
|
||||
(setq epa-file-encrypt-to '("xulfer@cheapbsd.net"))
|
||||
:hook
|
||||
(prog-mode-hook . flyspell-prog-mode)
|
||||
(text-mode-hook . flyspell-mode)
|
||||
:custom
|
||||
(scroll-conservatively 101 "Scroll just enough to bring text into view")
|
||||
(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
|
||||
@@ -19,3 +19,14 @@ on a system by system basis.
|
||||
;;;
|
||||
#+end_src
|
||||
|
||||
For now I have org-social enabled by default. It looks promising and doesn't add
|
||||
any substantial bloat so why not.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package org-social
|
||||
:ensure t
|
||||
:config
|
||||
(setq org-social-file "~/repos/xulfer.srht.site/social.org"
|
||||
org-social-relay "https://relay.org-social.org"
|
||||
org-social-my-public-url "https://xulfer.srht.site/social.org"))
|
||||
#+END_SRC
|
||||
|
||||
@@ -16,7 +16,7 @@ the future.
|
||||
:files ("*.el"))
|
||||
:no-require t
|
||||
:init
|
||||
(customize-set-variable 'frame-background-mode 'dark)
|
||||
(customize-set-variable 'frame-background-mode 'light)
|
||||
(load-theme 'solarized t))
|
||||
#+end_src
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ forge support really.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package magit
|
||||
:defer t
|
||||
:bind (("C-c M" . magit-dispatch))
|
||||
:custom
|
||||
(magit-repository-directories (list (cons elpaca-repos-directory 1)))
|
||||
(magit-diff-refine-hunk 'all)
|
||||
|
||||
Reference in New Issue
Block a user