Compare commits
10 Commits
41a02413cb
...
384445e0c9
Author | SHA1 | Date |
---|---|---|
Nathan McCarty | 384445e0c9 | |
Nathan McCarty | be13696671 | |
Nathan McCarty | 9de4fd5452 | |
Nathan McCarty | b12777a5da | |
Nathan McCarty | cb8f4a541d | |
Nathan McCarty | 66257103e0 | |
Nathan McCarty | bc562626bf | |
Nathan McCarty | fc69aad5c5 | |
Nathan McCarty | 8e021f67c9 | |
Nathan McCarty | ddb0043f4c |
31
config.org
31
config.org
|
@ -32,9 +32,9 @@ The provided default ~config.el~
|
||||||
;; See 'C-h v doom-font' for documentation and more examples of what they
|
;; See 'C-h v doom-font' for documentation and more examples of what they
|
||||||
;; accept. For example:
|
;; accept. For example:
|
||||||
;;
|
;;
|
||||||
(setq doom-font (font-spec :family "FiraCode Nerd Font" :size 11 :weight 'semi-light)
|
(setq doom-font (font-spec :family "Iosevka" :size 13 :weight 'semi-light)
|
||||||
doom-unicode-font (font-spec :family "FiraCode Nerd Font" :size 11 :weight 'semi-light)
|
doom-unicode-font (font-spec :family "Iosevka" :size 13 :weight 'semi-light)
|
||||||
doom-variable-pitch-font (font-spec :family "Fira Sans" :size 15))
|
doom-variable-pitch-font (font-spec :family "Iosevka Sans Quasi" :size 15))
|
||||||
;;
|
;;
|
||||||
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
||||||
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
|
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
|
||||||
|
@ -490,7 +490,7 @@ Here we:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package! org-roam
|
(use-package! org-roam
|
||||||
:custom
|
:custom
|
||||||
(org-roam-directory (concat org-directory "Roam/"))
|
(org-roam-directory (concat org-directory "roam/"))
|
||||||
(org-roam-complete-everywhere t)
|
(org-roam-complete-everywhere t)
|
||||||
;; :bind (("C-c r l" . org-roam-buffer-toggle)
|
;; :bind (("C-c r l" . org-roam-buffer-toggle)
|
||||||
;; ("C-c r f" . org-roam-node-find)
|
;; ("C-c r f" . org-roam-node-find)
|
||||||
|
@ -996,8 +996,8 @@ Tell it not to update the mail itself, we have a systemd unit for that
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq +mu4e-backend nil)
|
(setq +mu4e-backend nil)
|
||||||
(after! mu4e
|
(after! mu4e
|
||||||
(setq mu4e-get-mail-command "systemctl start --user mbsync.service"
|
(setq mu4e-get-mail-command "mbsync -a"
|
||||||
mu4e-update-interval nil))
|
mu4e-update-interval 300))
|
||||||
#+end_src
|
#+end_src
|
||||||
We need to tell mu4e to rename files when they are moved, or else mbsync will break, see [[https://github.com/djcb/mu/issues/613#issuecomment-166714305][issue]] and [[http://tiborsimko.org/mbsync-duplicate-uid.html][blog post]]
|
We need to tell mu4e to rename files when they are moved, or else mbsync will break, see [[https://github.com/djcb/mu/issues/613#issuecomment-166714305][issue]] and [[http://tiborsimko.org/mbsync-duplicate-uid.html][blog post]]
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -1008,24 +1008,19 @@ We need to tell mu4e to rename files when they are moved, or else mbsync will br
|
||||||
Now setup notifications
|
Now setup notifications
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package! mu4e-alert
|
(use-package! mu4e-alert
|
||||||
|
:demand t
|
||||||
:config
|
:config
|
||||||
(mu4e-alert-set-default-style 'libnotify)
|
(mu4e-alert-set-default-style 'libnotify)
|
||||||
(setq mu4e-alert-interesting-mail-query
|
(setq mu4e-alert-interesting-mail-query
|
||||||
(concat
|
(concat
|
||||||
"flag:unread"
|
"flag:unread"
|
||||||
" AND NOT flag:trashed"
|
" AND NOT flag:trashed"
|
||||||
" AND NOT maildir:"
|
" AND maildir:"
|
||||||
"\"/nathan@mccarty.io/Spam\""
|
"\"/nathan@mccarty.io/Inbox\""))
|
||||||
"\"/nathan@mccarty.io/Folders/Mailing Lists\""
|
|
||||||
"\"/nathan@mccarty.io/Trash\"")))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
Add to the modeline and enable nofitications, but only when we are the daemon
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(when (daemonp)
|
|
||||||
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
|
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
|
||||||
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display))
|
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** [[https://github.com/stsquad/emacs_chrome][Edit with Emacs]]
|
** [[https://github.com/stsquad/emacs_chrome][Edit with Emacs]]
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package! edit-server
|
(use-package! edit-server
|
||||||
|
|
40
init.el
40
init.el
|
@ -62,7 +62,6 @@
|
||||||
:tools
|
:tools
|
||||||
(debugger +lsp) ; stepping through code, to help you add bugs
|
(debugger +lsp) ; stepping through code, to help you add bugs
|
||||||
direnv
|
direnv
|
||||||
docker
|
|
||||||
editorconfig ; let someone else argue about tabs vs spaces
|
editorconfig ; let someone else argue about tabs vs spaces
|
||||||
(eval +overlay) ; run code, run (also, repls)
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
|
@ -77,22 +76,31 @@
|
||||||
(tty +osc)
|
(tty +osc)
|
||||||
|
|
||||||
:lang
|
:lang
|
||||||
data
|
;;; Programming languages
|
||||||
emacs-lisp
|
;; Systems/low level languages
|
||||||
json
|
(rust +lsp +tree-sitter)
|
||||||
(latex +fold)
|
;; JVM
|
||||||
markdown
|
|
||||||
nix
|
|
||||||
(org +pandoc +present +roam2 +pomodoro)
|
|
||||||
rest ; Emacs as a REST client
|
|
||||||
(rust +lsp)
|
|
||||||
(sh +fish)
|
|
||||||
yaml
|
|
||||||
(scheme +chez)
|
|
||||||
(haskell +lsp)
|
|
||||||
plantuml
|
|
||||||
(kotlin +lsp)
|
|
||||||
(java +lsp)
|
(java +lsp)
|
||||||
|
(kotlin +lsp)
|
||||||
|
;; Web
|
||||||
|
(javascript +lsp +tree-sitter)
|
||||||
|
(web +lsp +tree-sitter)
|
||||||
|
;; Other High Level
|
||||||
|
(haskell +lsp +tree-sitter)
|
||||||
|
emacs-lisp
|
||||||
|
(scheme +chez)
|
||||||
|
(sh +fish)
|
||||||
|
;; Configuration/Data
|
||||||
|
(nix +tree-sitter)
|
||||||
|
data
|
||||||
|
(yaml +tree-sittter)
|
||||||
|
(json +tree-sitter)
|
||||||
|
dhall
|
||||||
|
;; Markup
|
||||||
|
(latex +fold)
|
||||||
|
(markdown +tree-sitter)
|
||||||
|
(org +pandoc +present +roam2 +pomodoro)
|
||||||
|
plantuml
|
||||||
|
|
||||||
:email
|
:email
|
||||||
(mu4e +org)
|
(mu4e +org)
|
||||||
|
|
Loading…
Reference in New Issue