mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
3.6 KiB
3.6 KiB
General settings
Set fonts to a Nerd Fonts patched version of Fira Code. Theme is set to doom-molokai from doom-themes doom-molokai screenshot
(setq doom-font (font-spec :family "FuraCode Nerd Font Mono" :size 12) ; Set font
doom-theme 'doom-molokai) ; Set theme
Projectile
Set default paths projectile should search
(use-package! projectile
:config
(setq projectile-project-search-path '("~/devel/personal/" "~/devel/andthensome/" "~/Documents/"))) ; Default paths
Circe
Connect to ZNC. Passwords are gotten from Password Store.
(use-package! circe
:config
(setq circe-network-options
`(
("znc-freenode"
:host "irc.higherlearning.eu"
:port "5000"
:tls t ;; Enable tls
:user "l0rd/freenode"
:server-buffer-name "⇄ Freenode (ZNC)"
:pass (lambda (&rest _) (+pass-get-secret "controlpanel/irc.higherlearning.eu")) ;; Get password from pass
:channels ("#emacs"))
("znc-snoonet"
:host "irc.higherlearning.eu"
:port "5000"
:tls t
:user "l0rd/snoonet"
:server-buffer-name "⇄ Snoonet (ZNC)"
:pass (lambda (&rest _) (+pass-get-secret "controlpanel/irc.higherlearning.eu"))
:channels ("#islam"))
))
:hook (circe-channel-mode . enable-lui-autopaste)
)
Notmuch Emacs
Play nice with msmtp and fetch mail via custom mailsync shell script.
(use-package! notmuch
:config
(setq +notmuch-sync-backend nil ; Needed to make sure notmuch-sync-command below is run when notmmuch is loaded
+notmuch-sync-command "mailsync" ; Command to fetch email
sendmail-program "/usr/bin/msmtp" ; Use msmtp to send mail
message-sendmail-f-is-evil t; Non-nil means don't add "-f username" to the sendmail command line.
message-sendmail-extra-arguments '("--read-envelope-from") ; Additional arguments to sendmail-program.
message-send-mail-function 'message-send-mail-with-sendmail) ; Function to call to send the current buffer as mail.
)
Org mode
When moving entries up and down in the buffer use `j` and `k` instead of `↑` and `↓`
(after! org
(map! :map org-mode-map
:n "M-j" #'org-metadown
:n "M-k" #'org-metaup)
)
- Set default org directory
- When task is set to `DONE` add timestamp and give the opportunity to type in a note
- Show images in buffers as default
(setq org-directory "~/Documents/org"
org-agenda-files '("~/Documents/org")
org-log-done 'note
org-startup-with-inline-images t)
Spotify
Control Spotify with Counsel Spotify
(setq counsel-spotify-client-id "03f9817b1b6946febf9a0573d28e3831"
counsel-spotify-client-secret "d03c172f1497466a953026f001f1daeb")