doom: config

This commit is contained in:
Inhji 2024-03-31 12:38:03 +02:00
parent 02c206dda1
commit 554c15a161
3 changed files with 37 additions and 19 deletions

View File

@ -84,6 +84,7 @@
;; Default Shell
;; Useful if default system shell is not bash
(setq shell-file-name (executable-find "bash"))
(setq vterm-shell (executable-find "fish"))
;; This is where all org files are sourced from
(setq +user-org-path "~/Notes/Org")
@ -101,9 +102,22 @@
;; Dashboard
(setq +doom-dashboard-ascii-banner-fn #'my-weebery-is-always-greater)
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-shortmenu)
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-footer)
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-loaded)
;; (remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-shortmenu)
;; (remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-footer)
;; (remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-loaded)
(add-to-list '+doom-dashboard-menu-sections
'("Open Notmuch"
:icon (nerd-icons-faicon "nf-fa-calendar" :face 'doom-dashboard-menu-title)
:when (modulep! :email notmuch)
:face (:inherit (doom-dashboard-menu-title bold))
:action =notmuch))
(add-to-list '+doom-dashboard-menu-sections
'("Open elfeed"
:icon (nerd-icons-faicon "nf-fa-rss" :face 'doom-dashboard-menu-title)
:when (modulep! :app rss)
:face (:inherit (doom-dashboard-menu-title bold))
:action elfeed))
(use-package! notmuch
:config
@ -202,7 +216,8 @@
1. First Step")))
:hook (org-after-todo-state-change . org-habit-stats-update-properties)
:hook
(org-after-todo-state-change . org-habit-stats-update-properties)
:init
(add-to-list 'org-modules 'org-habit)
(add-hook 'org-export-before-processing-functions 'my-org-inline-css-hook))
@ -220,7 +235,7 @@
(kbd "K") 'elfeed-goodies/split-show-prev)
:config
(setq elfeed-goodies/entry-pane-size 0.5
elfeed-search-filter "@2-week-ago +unread +unread"
elfeed-search-filter "@2-week-ago +unread"
elfeed-feeds
'(("https://adactio.com/journal/rss" tech)
("https://andregarzia.com/feeds/all.atom.xml" tech)
@ -295,8 +310,8 @@
:config
(setq heaven-and-hell-theme-type 'dark ;; Omit to use light by default
heaven-and-hell-themes
'((light . modus-operandi)
(dark . modus-vivendi)) ;; Themes can be the list: (dark . (tsdh-dark wombat))
'((light . (modus-operandi leuven))
(dark . (modus-vivendi leuven-dark))) ;; Themes can be the list: (dark . (tsdh-dark wombat))
heaven-and-hell-load-theme-no-confirm t)
:hook (after-init . heaven-and-hell-init-hook)
:bind (("<f6>" . heaven-and-hell-toggle-theme)))
@ -318,12 +333,13 @@
:config
(setq nov-text-width 70))
(use-package! olivetti
:init
(add-hook! 'nov-mode-hook 'olivetti-mode)
(add-hook! 'org-mode-hook
'(olivetti-mode
(lambda () (display-line-numbers-mode -1)))))
;; Replaced by zen mode in doom emacs
;; (use-package! olivetti
;; :init
;; (add-hook! 'nov-mode-hook 'olivetti-mode)
;; (add-hook! 'org-mode-hook
;; '(olivetti-mode
;; (lambda () (display-line-numbers-mode -1)))))
(use-package! org-auto-tangle
:defer t

View File

@ -24,7 +24,7 @@
company ; the ultimate code completion backend
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...
;;ivy ; a search engine for love and life
;; ivy ; a search engine for love and life
vertico ; the search engine of the future
:ui
@ -43,7 +43,7 @@
;;neotree ; a project drawer, like NERDTree for vim
ophints ; highlight the region an operation acts on
(popup +defaults) ; tame sudden yet inevitable temporary windows
tabs ; a tab bar for Emacs
;; tabs ; a tab bar for Emacs
treemacs ; a project drawer, like neotree but cooler
;;unicode ; extended unicode support for various languages
(vc-gutter +pretty) ; vcs diff in the fringe
@ -96,14 +96,14 @@
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
lookup ; navigate your code and its documentation
;;lsp ; M-x vscode
lsp ; M-x vscode
magit ; a git porcelain for Emacs
;;make ; run make tasks from Emacs
;;pass ; password manager for nerds
;;pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders
;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects
taskrunner ; taskrunner for all your projects
;;terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux
;;tree-sitter ; syntax and parsing, sitting in a tree...
@ -155,7 +155,7 @@
;;nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel
(org +roam2) ; organize your plain life in plain text
;;php ; perl's insecure younger brother
php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional
;;python ; beautiful is better than ugly
@ -174,7 +174,7 @@
;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance.
web ; the tubes
;;yaml ; JSON, but readable
yaml ; JSON, but readable
;;zig ; C, but simpler
:email

View File

@ -22,6 +22,8 @@
(package! org-super-agenda)
(package! org-superstar)
(package! casual)
(package! ztree)
(package! php-extras)
;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here: