Compare commits

...

10 Commits

Author SHA1 Message Date
Nathan McCarty 384445e0c9
Bump font size 2023-03-14 13:38:08 -04:00
Nathan McCarty be13696671
Switch font to iosevka 2023-03-14 13:33:57 -04:00
Nathan McCarty 9de4fd5452
Add dhall 2023-03-10 00:13:26 -05:00
Nathan McCarty b12777a5da
Add webdev stuff 2023-03-09 05:50:43 -05:00
Nathan McCarty cb8f4a541d
Organization 2023-03-09 05:35:00 -05:00
Nathan McCarty 66257103e0
Enable treesitter 2023-03-09 05:31:33 -05:00
Nathan McCarty bc562626bf
Remove unused modes 2023-03-09 05:25:49 -05:00
Nathan McCarty fc69aad5c5
Turn off docker
it was broken and we weren't using it
2023-02-25 21:07:41 -05:00
Nathan McCarty 8e021f67c9
change org roam directory 2023-02-25 18:33:04 -05:00
Nathan McCarty ddb0043f4c
Tweak mu4e 2023-02-15 19:26:51 -05:00
2 changed files with 37 additions and 34 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 ;; 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
View File

@ -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)