Remove most top-level headings in config files

Remove the headings that were used for each section, now that each
section is in a different file

Tweak org config to let org-agenda setup be where agenda files are
added to org-refile-targets list, just in case
This commit is contained in:
Evie Litherland-Smith 2024-02-15 12:01:36 +00:00
parent d30506c7aa
commit dd8b3a6668
8 changed files with 102 additions and 109 deletions

View file

@ -3,7 +3,7 @@
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* Common defaults
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq custom-file (locate-user-emacs-file "custom.el")) (setq custom-file (locate-user-emacs-file "custom.el"))
(when (and custom-file (file-exists-p custom-file)) (when (and custom-file (file-exists-p custom-file))
@ -64,7 +64,7 @@
(customize-set-variable 'compilation-scroll-output t) (customize-set-variable 'compilation-scroll-output t)
#+end_src #+end_src
** Auto-save file settings * Auto-save file settings
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(setq backup-directory-alist '(("." . "~/.local/state/emacs/backups")) (setq backup-directory-alist '(("." . "~/.local/state/emacs/backups"))
tramp-backup-directory-alist backup-directory-alist tramp-backup-directory-alist backup-directory-alist
@ -73,7 +73,7 @@
(savehist-mode +1) (savehist-mode +1)
#+end_src #+end_src
** Recent files * Recent files
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package recentf (use-package recentf
:config :config
@ -83,7 +83,7 @@
(recentf-max-saved-items 2048)) (recentf-max-saved-items 2048))
#+end_src #+end_src
** package-archive with priorities * package-archive with priorities
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(when (require 'package nil :noerror) (when (require 'package nil :noerror)
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/")) (add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
@ -94,12 +94,12 @@
("stable" . 70) ("stable" . 70)
("melpa" . 0)))) ("melpa" . 0))))
#+end_src #+end_src
** diminish modes * diminish modes
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package diminish :ensure t) (use-package diminish :ensure t)
#+end_src #+end_src
** Authentication * Authentication
#+begin_src emacs-lisp #+begin_src emacs-lisp
(when (require 'auth-source nil :noerror) (when (require 'auth-source nil :noerror)
(setq auth-sources '("secrets:Login")) (setq auth-sources '("secrets:Login"))
@ -107,7 +107,7 @@
(auth-source-pass-enable))) (auth-source-pass-enable)))
#+end_src #+end_src
** Helpful * Helpful
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; Make `describe-*' screens more helpful ;; Make `describe-*' screens more helpful
(use-package helpful (use-package helpful
@ -125,7 +125,7 @@
(keymap-global-set "C-h K" #'describe-keymap) (keymap-global-set "C-h K" #'describe-keymap)
#+end_src #+end_src
** Spell checking * Spell checking
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; turn on spell checking, if available. ;; turn on spell checking, if available.
(when (and (require 'ispell nil :noerror) (executable-find ispell-program-name)) (when (and (require 'ispell nil :noerror) (executable-find ispell-program-name))
@ -153,7 +153,7 @@
(setq consult-flyspell-always-check-buffer t))) (setq consult-flyspell-always-check-buffer t)))
#+end_src #+end_src
** ibuffer * ibuffer
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package ibuffer (use-package ibuffer
:ensure t :ensure t
@ -168,7 +168,7 @@
(ibuffer-do-sort-by-project-file-relative)))))) (ibuffer-do-sort-by-project-file-relative))))))
#+end_src #+end_src
** whitespace-mode * whitespace-mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package whitespace (use-package whitespace
:custom :custom
@ -192,7 +192,7 @@
newline-mark))) newline-mark)))
#+end_src #+end_src
** Link hint keymaps * Link hint keymaps
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package link-hint (use-package link-hint
:ensure t :ensure t
@ -202,7 +202,7 @@
("C-c l C-c" . link-hint-copy-all-link))) ("C-c l C-c" . link-hint-copy-all-link)))
#+end_src #+end_src
** Avy keymaps * Avy keymaps
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package avy (use-package avy
:ensure t :ensure t
@ -213,14 +213,14 @@
("C-c j l" . avy-goto-line))) ("C-c j l" . avy-goto-line)))
#+end_src #+end_src
** which-func config * which-func config
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package which-func (use-package which-func
:ensure t :ensure t
:init (which-function-mode)) :init (which-function-mode))
#+end_src #+end_src
** Shells and terminals * Shells and terminals
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package shell (use-package shell
:bind (("C-c t s" . shell))) :bind (("C-c t s" . shell)))
@ -229,7 +229,7 @@
:bind (("C-c t e" . eshell))) :bind (("C-c t e" . eshell)))
#+end_src #+end_src
** Web browser * Web browser
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package eww (use-package eww
:defer t :defer t

View file

@ -3,8 +3,7 @@
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* Development Environment
** Miscellaneous
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package rainbow-delimiters (use-package rainbow-delimiters
:ensure t :ensure t
@ -18,13 +17,13 @@
:config (direnv-mode +1)) :config (direnv-mode +1))
#+end_src #+end_src
** Grand Unified Debugger * Grand Unified Debugger
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'gud (with-eval-after-load 'gud
(customize-set-variable 'gdb-many-windows t)) (customize-set-variable 'gdb-many-windows t))
#+end_src #+end_src
** Tree-sitter * Tree-sitter
Set treesit to fontify all elements, default was 3 (out of 4) Set treesit to fontify all elements, default was 3 (out of 4)
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package treesit (use-package treesit
@ -43,7 +42,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(setq rust-ts-mode-hook rust-mode-hook)) (setq rust-ts-mode-hook rust-mode-hook))
#+end_src #+end_src
** Eldoc * Eldoc
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package eldoc (use-package eldoc
:ensure t :ensure t
@ -54,7 +53,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(eldoc-echo-area-use-multiline-p nil)) (eldoc-echo-area-use-multiline-p nil))
#+end_src #+end_src
** Eglot LSP * Eglot LSP
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package eglot (use-package eglot
:ensure t :ensure t
@ -96,7 +95,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
`((python-ts-mode python-mode) . ("pylsp")))) `((python-ts-mode python-mode) . ("pylsp"))))
#+end_src #+end_src
** Apheleia formatting * Apheleia formatting
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package apheleia (use-package apheleia
:ensure t :ensure t
@ -110,7 +109,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(add-to-list 'apheleia-mode-alist '(python-ts-mode . ruff)) (add-to-list 'apheleia-mode-alist '(python-ts-mode . ruff))
(add-to-list 'apheleia-mode-alist '(python-mode . ruff))) (add-to-list 'apheleia-mode-alist '(python-mode . ruff)))
#+end_src #+end_src
** Flymake * Flymake
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package flymake (use-package flymake
:ensure t :ensure t
@ -119,7 +118,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:hook (prog-mode . flymake-mode)) :hook (prog-mode . flymake-mode))
#+end_src #+end_src
*** Diagnostics in popup ** Diagnostics in popup
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package flymake-popon (use-package flymake-popon
:ensure t :ensure t
@ -129,7 +128,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(global-flymake-popon-mode +1)) (global-flymake-popon-mode +1))
#+end_src #+end_src
*** shellcheck ** shellcheck
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package flymake-shellcheck (use-package flymake-shellcheck
:ensure t :ensure t
@ -138,7 +137,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:hook (sh-mode . flymake-shellcheck-load)) :hook (sh-mode . flymake-shellcheck-load))
#+end_src #+end_src
*** eslint ** eslint
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package flymake-eslint (use-package flymake-eslint
:ensure t :ensure t
@ -146,7 +145,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:diminish :diminish
:hook (js-ts-mode . flymake-eslint-enable)) :hook (js-ts-mode . flymake-eslint-enable))
#+end_src #+end_src
*** ruff ** ruff
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package flymake-ruff (use-package flymake-ruff
:ensure t :ensure t
@ -155,7 +154,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:hook (python-base-mode . flymake-ruff-load)) :hook (python-base-mode . flymake-ruff-load))
#+end_src #+end_src
** Project * Project
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq project-switch-use-entire-map t (setq project-switch-use-entire-map t
project-switch-commands '((project-find-file "Find file") project-switch-commands '((project-find-file "Find file")
@ -164,8 +163,8 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(project-vc-dir "VC-Dir") (project-vc-dir "VC-Dir")
(project-eshell "Eshell"))) (project-eshell "Eshell")))
#+end_src #+end_src
** Version control * Version control
*** Magit ** Magit
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package magit (use-package magit
:ensure t :ensure t
@ -193,8 +192,8 @@ Set treesit to fontify all elements, default was 3 (out of 4)
("\\`\\(?:sourcehut:\\|sh:\\)\\([^:]+\\)\\'" "git.sr.ht" "sourcehut.user") ("\\`\\(?:sourcehut:\\|sh:\\)\\([^:]+\\)\\'" "git.sr.ht" "sourcehut.user")
("\\`\\(?:gitea:\\|gt:\\)\\([^:]+\\)\\'" "git.xenia.me.uk" "gitea.user")))) ("\\`\\(?:gitea:\\|gt:\\)\\([^:]+\\)\\'" "git.xenia.me.uk" "gitea.user"))))
#+end_src #+end_src
** Completion * Completion
*** Vertico ** Vertico
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package vertico (use-package vertico
:ensure t :ensure t
@ -207,7 +206,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(require 'vertico-directory)) (require 'vertico-directory))
#+end_src #+end_src
*** Marginalia ** Marginalia
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package marginalia (use-package marginalia
:ensure t :ensure t
@ -219,7 +218,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:config (marginalia-mode +1)) :config (marginalia-mode +1))
#+end_src #+end_src
*** Orderless ** Orderless
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package orderless (use-package orderless
:ensure t :ensure t
@ -230,7 +229,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(completion-category-overrides '((file (styles . (partial-completion)))))) (completion-category-overrides '((file (styles . (partial-completion))))))
#+end_src #+end_src
*** Corfu and Cape ** Corfu and Cape
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package corfu (use-package corfu
:ensure t :ensure t
@ -285,7 +284,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(add-to-list 'completion-at-point-functions #'cape-dabbrev)) (add-to-list 'completion-at-point-functions #'cape-dabbrev))
#+end_src #+end_src
*** Consult ** Consult
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package consult (use-package consult
:ensure t :ensure t
@ -318,7 +317,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:bind (("C-c s y" . consult-yasnippet))) :bind (("C-c s y" . consult-yasnippet)))
#+end_src #+end_src
*** Embark ** Embark
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package embark (use-package embark
:ensure t :ensure t
@ -333,7 +332,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:after (embark consult) :after (embark consult)
:hook (embark-collect-mode . consult-preview-at-point-mode)) :hook (embark-collect-mode . consult-preview-at-point-mode))
#+end_src #+end_src
** Snippets * Snippets
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package yasnippet-snippets :ensure t) (use-package yasnippet-snippets :ensure t)
@ -351,7 +350,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:after yasnippet :after yasnippet
:init (add-to-list 'completion-at-point-functions #'yasnippet-capf)) :init (add-to-list 'completion-at-point-functions #'yasnippet-capf))
#+end_src #+end_src
** Aggressive Indent * Aggressive Indent
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package aggressive-indent (use-package aggressive-indent
:ensure t :ensure t
@ -361,8 +360,8 @@ Set treesit to fontify all elements, default was 3 (out of 4)
lisp-data-mode lisp-data-mode
rust-mode)) rust-mode))
#+end_src #+end_src
** Language-specific settings * Language-specific settings
*** Nix ** Nix
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package nix-mode (use-package nix-mode
:mode "\\.nix\\'" :mode "\\.nix\\'"
@ -371,13 +370,13 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(require 'nix-flake)) (require 'nix-flake))
#+end_src #+end_src
*** Nushell ** Nushell
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package nushell-ts-mode (use-package nushell-ts-mode
:mode "\\.nu\\'") :mode "\\.nu\\'")
#+end_src #+end_src
*** Python ** Python
Set fill column to 88 and enable display in python buffers Set fill column to 88 and enable display in python buffers
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(defun my/enable-fill-column (col) (defun my/enable-fill-column (col)
@ -394,7 +393,7 @@ Set fill column to 88 and enable display in python buffers
(setq python-ts-mode-hook python-mode-hook)) (setq python-ts-mode-hook python-mode-hook))
#+end_src #+end_src
*** Rust ** Rust
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package cargo (use-package cargo
:hook (rust-ts-mode . cargo-minor-mode)) :hook (rust-ts-mode . cargo-minor-mode))

View file

@ -3,15 +3,14 @@
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* Internet * Gnus
** Gnus
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package gnus (use-package gnus
:config :config
(setq gnus-select-method '(nnnil))) (setq gnus-select-method '(nnnil)))
#+end_src #+end_src
** Email * Email
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq sendmail-program (executable-find "msmtp") (setq sendmail-program (executable-find "msmtp")
send-mail-function #'sendmail-send-it send-mail-function #'sendmail-send-it
@ -74,7 +73,7 @@
) )
#+end_src #+end_src
*** Account contexts ** Account contexts
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(require 'mu4e-context) (require 'mu4e-context)
@ -113,7 +112,7 @@
(mu4e-refile-folder . "/Outlook/Archive")))))) (mu4e-refile-folder . "/Outlook/Archive"))))))
#+end_src #+end_src
*** Modeline configuration ** Modeline configuration
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(require 'mu4e-modeline) (require 'mu4e-modeline)
@ -124,7 +123,7 @@
(mu4e-modeline-mode +1)) (mu4e-modeline-mode +1))
#+end_src #+end_src
*** Headers mode glyphs ** Headers mode glyphs
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(setq mu4e-search-full-label '("F" . "󱊖 ") (setq mu4e-search-full-label '("F" . "󱊖 ")
@ -158,7 +157,7 @@
mu4e-headers-thread-last-child-prefix '("└>" . "╰>"))) mu4e-headers-thread-last-child-prefix '("└>" . "╰>")))
#+end_src #+end_src
**** Custom marks *** Custom marks
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(setq mu4e-marks '((refile :char (setq mu4e-marks '((refile :char
@ -273,20 +272,20 @@
(mu4e-error "No action for deferred mark"))))) (mu4e-error "No action for deferred mark")))))
#+end_src #+end_src
*** Desktop notifications ** Desktop notifications
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(require 'mu4e-notification) (require 'mu4e-notification)
(setq mu4e-notification-support t)) (setq mu4e-notification-support t))
#+end_src #+end_src
*** Org-mode integration ** Org-mode integration
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(require 'mu4e-org)) (require 'mu4e-org))
#+end_src #+end_src
*** iCalendar integration ** iCalendar integration
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(require 'mu4e-icalendar) (require 'mu4e-icalendar)
@ -298,7 +297,7 @@
(gnus-icalendar-org-setup)) (gnus-icalendar-org-setup))
#+end_src #+end_src
** Feeds * Feeds
#+begin_src emacs-lisp #+begin_src emacs-lisp
(let ((elfeed-base-directory "~/.elfeed")) (let ((elfeed-base-directory "~/.elfeed"))
(setq elfeed-db-directory (expand-file-name "db" elfeed-base-directory) (setq elfeed-db-directory (expand-file-name "db" elfeed-base-directory)

View file

@ -3,8 +3,7 @@
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* Media * EMMS
** EMMS
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq emms-mode-line-icon-enabled-p nil) (setq emms-mode-line-icon-enabled-p nil)
(use-package emms (use-package emms

View file

@ -3,7 +3,7 @@
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* Org-mode
For reference information, see [[https://orgmode.com][Org-mode website]] For reference information, see [[https://orgmode.com][Org-mode website]]
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
@ -19,11 +19,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
org-refile-use-outline-path t org-refile-use-outline-path t
org-refile-allow-creating-parent-nodes t org-refile-allow-creating-parent-nodes t
org-refile-use-outline-path 'file org-refile-use-outline-path 'file
org-refile-targets '((nil :maxlevel . 2) org-refile-targets '((nil :maxlevel . 2)))
(org-agenda-files :maxlevel . 1)
;; ((expand-file-name "journal" org-directory) :maxlevel . 1)
;; ((expand-file-name "roam" org-directory) :maxlevel . 1)
(org-agenda-files :tag . "inbox")))
;; Visually indent org-mode files to a given header level ;; Visually indent org-mode files to a given header level
(add-hook 'org-mode-hook #'org-indent-mode) (add-hook 'org-mode-hook #'org-indent-mode)
@ -35,7 +31,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(python . t)))) (python . t))))
#+end_src #+end_src
** Keymaps * Keymaps
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(keymap-global-set "C-c o ." #'calendar) (keymap-global-set "C-c o ." #'calendar)
(keymap-global-set "C-c o e" #'org-edit-src-code) (keymap-global-set "C-c o e" #'org-edit-src-code)
@ -44,7 +40,27 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(keymap-global-set "C-c o l" #'org-capture-goto-last-stored) (keymap-global-set "C-c o l" #'org-capture-goto-last-stored)
#+end_src #+end_src
** org-roam * Capture templates
#+begin_src emacs-lisp :results output silent
(setq org-capture-templates
'(("n" "Note" entry
(file+headline "notes.org" "Inbox")
"* %?")
("t" "Task" entry
(file+headline "tasks.org" "Inbox")
"* TODO %?"
:prepend t)
("r" "Reading List" entry
(file+headline "reading.org" "Inbox")
"* %?")
("m" "Email Workflow")
("mf" "Follow Up" entry (file+olp "mail.org" "Follow Up")
"* TODO Follow up with %:fromname on %a\nSCHEDULED:%t\nDEADLINE: %(org-insert-time-stamp (org-read-date nil t \"+2d\"))\n\n%i")
("mr" "Read Later" entry (file+olp "mail.org" "Read Later")
"* TODO Read %:subject\nSCHEDULED:%t\nDEADLINE: %(org-insert-time-stamp (org-read-date nil t \"+2d\"))\n\n%a\n\n%i")
))
#+end_src
* org-roam
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-roam (use-package org-roam
:ensure t :ensure t
@ -70,7 +86,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(org-roam-db-autosync-mode +1)) (org-roam-db-autosync-mode +1))
#+end_src #+end_src
** org-agenda * org-agenda
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(setq org-agenda-span 'week (setq org-agenda-span 'week
org-agenda-start-on-weekday 1 org-agenda-start-on-weekday 1
@ -86,10 +102,12 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(let ((agenda-file (expand-file-name ".agenda" org-directory))) (let ((agenda-file (expand-file-name ".agenda" org-directory)))
(if (file-exists-p agenda-file) (if (file-exists-p agenda-file)
(setq org-agenda-files agenda-file))) (list (setq org-agenda-files agenda-file)
(add-to-list 'org-refile-targets '(org-agenda-files :maxlevel . 1) t)
(add-to-list 'org-refile-targets '(org-agenda-files :tag . "inbox") t))))
#+end_src #+end_src
** org-alert * org-alert
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-alert (use-package org-alert
:ensure t :ensure t
@ -100,7 +118,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
org-alert-notify-after-event-cutoff 5) org-alert-notify-after-event-cutoff 5)
(org-alert-enable)) (org-alert-enable))
#+end_src #+end_src
** org-journal * org-journal
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(use-package org-journal (use-package org-journal
:bind (("C-c o j" . org-journal-new-entry)) :bind (("C-c o j" . org-journal-new-entry))
@ -109,27 +127,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(org-journal-file-type 'monthly) (org-journal-file-type 'monthly)
(org-journal-file-format "%Y-%m.org")) (org-journal-file-format "%Y-%m.org"))
#+end_src #+end_src
** Capture templates * org-noter
#+begin_src emacs-lisp :results output silent
(setq org-capture-templates
'(("n" "Note" entry
(file+headline "notes.org" "Inbox")
"* %?")
("t" "Task" entry
(file+headline "tasks.org" "Inbox")
"* TODO %?"
:prepend t)
("r" "Reading List" entry
(file+headline "reading.org" "Inbox")
"* %?")
("m" "Email Workflow")
("mf" "Follow Up" entry (file+olp "mail.org" "Follow Up")
"* TODO Follow up with %:fromname on %a\nSCHEDULED:%t\nDEADLINE: %(org-insert-time-stamp (org-read-date nil t \"+2d\"))\n\n%i")
("mr" "Read Later" entry (file+olp "mail.org" "Read Later")
"* TODO Read %:subject\nSCHEDULED:%t\nDEADLINE: %(org-insert-time-stamp (org-read-date nil t \"+2d\"))\n\n%a\n\n%i")
))
#+end_src
** org-noter
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-noter (use-package org-noter
:ensure t :ensure t
@ -148,7 +146,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(org-noter-prefer-root-as-file-level nil)) (org-noter-prefer-root-as-file-level nil))
#+end_src #+end_src
** Citar * citar
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(use-package citar (use-package citar
:ensure t :ensure t
@ -209,7 +207,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
citar-indicator-cited-icons))) citar-indicator-cited-icons)))
#+end_src #+end_src
*** Citar Embark integration ** Citar Embark integration
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package citar-embark (use-package citar-embark
:ensure t :ensure t
@ -219,7 +217,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
(citar-embark-mode +1)) (citar-embark-mode +1))
#+end_src #+end_src
*** LaTeX ** LaTeX
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq org-latex-compiler "lualatex") (setq org-latex-compiler "lualatex")
(setq org-preview-latex-default-process 'dvisvgm) (setq org-preview-latex-default-process 'dvisvgm)

View file

@ -3,7 +3,7 @@
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* Password Store
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package password-store (use-package password-store
:ensure t :ensure t

View file

@ -3,8 +3,7 @@
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* Remote Editing
** TRAMP
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package tramp (use-package tramp
:defer t :defer t
@ -13,7 +12,7 @@
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)) (add-to-list 'tramp-remote-path 'tramp-own-remote-path))
#+end_src #+end_src
*** Connection variables * Connection variables
#+begin_src emacs-lisp #+begin_src emacs-lisp
(connection-local-set-profile-variables (connection-local-set-profile-variables
'remote-disable-apheleia 'remote-disable-apheleia
@ -37,4 +36,3 @@
'remote-disable-apheleia) 'remote-disable-apheleia)
#+end_src #+end_src

View file

@ -3,7 +3,7 @@
#+email: evie@xenia.me.uk #+email: evie@xenia.me.uk
#+filetags: :emacs:config:org: #+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent #+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
* UI
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq use-dialog-box nil (setq use-dialog-box nil
truncate-lines nil truncate-lines nil
@ -43,7 +43,7 @@
(advice-add command :after #'pulse-line)) (advice-add command :after #'pulse-line))
#+end_src #+end_src
** Theme, font and nerd-icons * Theme, font and nerd-icons
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-to-list 'initial-frame-alist '(width . 120)) (add-to-list 'initial-frame-alist '(width . 120))
(add-to-list 'initial-frame-alist '(height . 80)) (add-to-list 'initial-frame-alist '(height . 80))
@ -101,7 +101,7 @@
(keymap-global-set "C-c i n" #'nerd-icons-insert) (keymap-global-set "C-c i n" #'nerd-icons-insert)
#+end_src #+end_src
*** Font ligatures ** Font ligatures
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package ligature (use-package ligature
:ensure t :ensure t
@ -117,9 +117,9 @@
"/*" "*/" "+++" "<!--" "<!---")) "/*" "*/" "+++" "<!--" "<!---"))
(global-ligature-mode +1)) (global-ligature-mode +1))
#+end_src #+end_src
** Window management * Window management
*** windmove ** windmove
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package windmove (use-package windmove
:ensure t :ensure t
@ -141,7 +141,7 @@
#+end_src #+end_src
*** winner ** winner
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package winner (use-package winner
:ensure t :ensure t
@ -153,7 +153,7 @@
(winner-mode)) (winner-mode))
#+end_src #+end_src
*** ediff ** ediff
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package ediff (use-package ediff
:ensure t :ensure t
@ -165,7 +165,7 @@
:custom :custom
(ediff-window-setup-function #'ediff-setup-windows-plain)) (ediff-window-setup-function #'ediff-setup-windows-plain))
#+end_src #+end_src
** Notifications * Notifications
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package alert (use-package alert
:ensure t :ensure t
@ -173,7 +173,7 @@
:custom :custom
(alert-default-style 'libnotify)) (alert-default-style 'libnotify))
#+end_src #+end_src
** Modeline * Modeline
#+begin_src emacs-lisp #+begin_src emacs-lisp
(line-number-mode -1) (line-number-mode -1)
(column-number-mode -1) (column-number-mode -1)
@ -183,7 +183,7 @@
(setq mode-line-compact 'long) (setq mode-line-compact 'long)
#+end_src #+end_src
** Zone * Zone
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package zone (use-package zone
:ensure t :ensure t
@ -191,7 +191,7 @@
:config (zone-when-idle (* 60 60 2))) ; 2 hours :config (zone-when-idle (* 60 60 2))) ; 2 hours
#+end_src #+end_src
** Git status in fringe * Git status in fringe
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package diff-hl (use-package diff-hl
:ensure t :ensure t