Compare commits

..

No commits in common. "384445e0c91fa7035344be76652188e29dab6c5f" and "41a02413cb861288d38ab36e8b85560901f685c1" have entirely different histories.

2 changed files with 33 additions and 36 deletions

View File

@ -32,9 +32,9 @@ The provided default ~config.el~
;; See 'C-h v doom-font' for documentation and more examples of what they
;; accept. For example:
;;
(setq doom-font (font-spec :family "Iosevka" :size 13 :weight 'semi-light)
doom-unicode-font (font-spec :family "Iosevka" :size 13 :weight 'semi-light)
doom-variable-pitch-font (font-spec :family "Iosevka Sans Quasi" :size 15))
(setq doom-font (font-spec :family "FiraCode Nerd Font" :size 11 :weight 'semi-light)
doom-unicode-font (font-spec :family "FiraCode Nerd Font" :size 11 :weight 'semi-light)
doom-variable-pitch-font (font-spec :family "Fira Sans" :size 15))
;;
;; 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
@ -490,7 +490,7 @@ Here we:
#+begin_src emacs-lisp
(use-package! org-roam
:custom
(org-roam-directory (concat org-directory "roam/"))
(org-roam-directory (concat org-directory "Roam/"))
(org-roam-complete-everywhere t)
;; :bind (("C-c r l" . org-roam-buffer-toggle)
;; ("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
(setq +mu4e-backend nil)
(after! mu4e
(setq mu4e-get-mail-command "mbsync -a"
mu4e-update-interval 300))
(setq mu4e-get-mail-command "systemctl start --user mbsync.service"
mu4e-update-interval nil))
#+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]]
#+begin_src emacs-lisp
@ -1008,19 +1008,24 @@ We need to tell mu4e to rename files when they are moved, or else mbsync will br
Now setup notifications
#+begin_src emacs-lisp
(use-package! mu4e-alert
:demand t
:config
(mu4e-alert-set-default-style 'libnotify)
(setq mu4e-alert-interesting-mail-query
(concat
"flag:unread"
" AND NOT flag:trashed"
" AND maildir:"
"\"/nathan@mccarty.io/Inbox\""))
(concat
"flag:unread"
" AND NOT flag:trashed"
" AND NOT maildir:"
"\"/nathan@mccarty.io/Spam\""
"\"/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-mode-line-display))
#+end_src
** [[https://github.com/stsquad/emacs_chrome][Edit with Emacs]]
#+begin_src emacs-lisp
(use-package! edit-server

34
init.el
View File

@ -62,6 +62,7 @@
:tools
(debugger +lsp) ; stepping through code, to help you add bugs
direnv
docker
editorconfig ; let someone else argue about tabs vs spaces
(eval +overlay) ; run code, run (also, repls)
lookup ; navigate your code and its documentation
@ -76,31 +77,22 @@
(tty +osc)
:lang
;;; Programming languages
;; Systems/low level languages
(rust +lsp +tree-sitter)
;; JVM
(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
emacs-lisp
json
(latex +fold)
(markdown +tree-sitter)
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)
:email
(mu4e +org)