summaryrefslogtreecommitdiff
path: root/modules/emacs/README.org
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-06-03 10:41:45 -0300
committerLeonardo Santiago <[email protected]>2024-06-03 10:41:45 -0300
commit2af6761a8cacab8f421f1ce4043cc5f998f30192 (patch)
tree1f5c0cfb830dd35050f76f3107db2cadaf9b5b51 /modules/emacs/README.org
parent36e878561fb7abc823d2ea8e85e6ef74b65d6d48 (diff)
more stuff
Diffstat (limited to 'modules/emacs/README.org')
-rw-r--r--modules/emacs/README.org55
1 files changed, 27 insertions, 28 deletions
diff --git a/modules/emacs/README.org b/modules/emacs/README.org
index ff818f4..9ca23c1 100644
--- a/modules/emacs/README.org
+++ b/modules/emacs/README.org
@@ -49,6 +49,30 @@ You can also use it as a ~nixosModule~, in order to add additional packages like
#+end_src
* Utility
+** Age encryption
+Configuration to automagically open age files, and to encrypt them correctly to all my machines.
+#+begin_src emacs-lisp :tangle yes
+(use-package age
+ :ensure t
+ :demand t
+ :custom
+ (age-program "rage")
+ (age-default-identity "~/.ssh/leonardo")
+ (age-default-recipient
+ '("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINWxS8tdN3j7Vm337RmJTzYTMbkAZN5g610ZesH4vhd8"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDrMCLu3VvQVmd2cqreAJsVKkrtKXqgzO8i8NDm06ysm"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGFQN59YDFwwQt/1rb1dHZnxsNV2geWUvHyTKqjdSA52"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINKjyS7vbCxr7oDqBpnhHQQzolAW6Fqt1FTOo+hT+lSC"))
+ :config
+ (age-file-enable))
+#+end_src
+** Flyspell
+#+begin_src emacs-lisp :tangle yes
+(use-package flyspell
+ :hook (org-mode . flyspell-mode)
+ :custom
+ (ispell-program-name "aspell"))
+#+end_src
** All the Icons
Works through nixosModules.
#+begin_src emacs-lisp :tangle yes
@@ -257,6 +281,8 @@ Try to use the package.
:hook (org-mode . org-indent-mode)
:bind ("C-c a" . org-agenda)
:config
+ (add-to-list 'org-src-lang-modes '("rust" . rust-ts))
+ (add-to-list 'org-src-lang-modes '("python" . python-ts))
(custom-set-faces
'(org-headline-done
((((class color) (min-colors 16) (background dark))
@@ -274,36 +300,9 @@ Try to use the package.
(org-indirect-buffer-display 'other-window)
(org-confirm-babel-evaluate nil)
(org-edit-src-content-indentation 0)
- (org-auto-align-tags nil)
+ (org-auto-align-tags t)
(org-fontify-done-headline t))
#+end_src
-*** Org Modern
-#+begin_src emacs-lisp :tangle yes
-(defun bg (color)
- `(:background ,color :inherit (org-todo org-modern-label) :foreground "gray25"))
-
-(use-package org-modern
- :after org
- :hook (org-mode . org-modern-mode)
- :hook (org-agenda-finalize . org-modern-agenda)
- :custom
- (org-modern-todo-faces
- `(("IDEA" . ,(bg "yellow"))
- ("TODO" . org-modern-todo)
- ("STUCK" . ,(bg "brown"))
- ("DOING" . ,(bg "green"))
- ("DONE" . org-modern-done)
- ; work tasks
- ("ASSIGNED" . org-modern-todo)
- ("WORKING" . ,(bg "green yellow"))
- ("ON REVIEW" . ,(bg "sandy brown"))
- ("MERGED" . org-modern-done)
- ("CANCELLED" . ,(bg "OrangeRed1"))
- ; one time tasks
- ("EVENT" . ,(bg "deep sky blue"))
- ("DONE" . org-modern-done)))
- (org-modern-priority t))
-#+end_src
*** Org Agenda
#+begin_src emacs-lisp :tangle yes
(setq