mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Emacs config is now and org mode thing
This commit is contained in:
parent
8408875f5b
commit
8f94953b71
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@ mutt/.config/mutt/.mailsynclastrun
|
|||||||
gtk/.config/gtk-3.0/bookmarks
|
gtk/.config/gtk-3.0/bookmarks
|
||||||
|
|
||||||
mpd/.config/mpd/pid
|
mpd/.config/mpd/pid
|
||||||
|
/emacs/.config/doom/configuration.el
|
||||||
|
@ -1,56 +1,5 @@
|
|||||||
;;; .doom.d/config.el -*- lexical-binding: t; -*-
|
;;; .doom.d/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Place your private configuration here
|
;; Place your private configuration here
|
||||||
;; General settings
|
|
||||||
(setq doom-font (font-spec :family "FuraCode Nerd Font Mono" :size 12)
|
|
||||||
doom-theme 'doom-molokai)
|
|
||||||
|
|
||||||
;; projectile
|
(org-babel-load-file "~/.config/doom/configuration.org")
|
||||||
(use-package! projectile
|
|
||||||
:config
|
|
||||||
(setq projectile-project-search-path '("~/devel/personal/" "~/devel/andthensome/" "~/Documents/")))
|
|
||||||
|
|
||||||
;; irc
|
|
||||||
(use-package! circe
|
|
||||||
:config
|
|
||||||
(setq circe-network-options
|
|
||||||
`(
|
|
||||||
("znc-freenode"
|
|
||||||
:host "irc.higherlearning.eu"
|
|
||||||
:port "5000"
|
|
||||||
:tls t
|
|
||||||
:user "l0rd/freenode"
|
|
||||||
:server-buffer-name "⇄ Freenode (ZNC)"
|
|
||||||
:pass (lambda (&rest _) (+pass-get-secret "controlpanel/irc.higherlearning.eu"))
|
|
||||||
: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
|
|
||||||
(use-package! notmuch
|
|
||||||
:config
|
|
||||||
(setq +notmuch-sync-backend 'mbsync
|
|
||||||
+notmuch-sync-command "mailsync"
|
|
||||||
sendmail-program "/usr/bin/msmtp"
|
|
||||||
message-sendmail-f-is-evil t
|
|
||||||
message-sendmail-extra-arguments '("--read-envelope-from")
|
|
||||||
message-send-mail-function 'message-send-mail-with-sendmail)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; org
|
|
||||||
(after! org
|
|
||||||
(map! :map org-mode-map
|
|
||||||
:n "M-j" #'org-metadown
|
|
||||||
:n "M-k" #'org-metaup)
|
|
||||||
)
|
|
||||||
(setq org-directory "~/Documents/org/"
|
|
||||||
org-log-done 'note)
|
|
||||||
|
82
emacs/.config/doom/configuration.org
Normal file
82
emacs/.config/doom/configuration.org
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
* General settings
|
||||||
|
Set fonts to a [[https://www.nerdfonts.com/][Nerd Fonts]] patched version of [[https://github.com/tonsky/FiraCode][Fira Code]]. Theme is set to
|
||||||
|
doom-molokai from [[https://github.com/hlissner/emacs-doom-themes][doom-themes]]
|
||||||
|
|
||||||
|
[[https://raw.githubusercontent.com/hlissner/emacs-doom-themes/screenshots/doom-molokai.png][doom-molokai screenshot]]
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(setq doom-font (font-spec :family "FuraCode Nerd Font Mono" :size 12) ; Set font
|
||||||
|
doom-theme 'doom-molokai) ; Set theme
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* [[https://www.projectile.mx/en/latest/][Projectile]]
|
||||||
|
Set default paths projectile should search
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package! projectile
|
||||||
|
:config
|
||||||
|
(setq projectile-project-search-path '("~/devel/personal/" "~/devel/andthensome/" "~/Documents/"))) ; Default paths
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* [[https://github.com/jorgenschaefer/circe][Circe]]
|
||||||
|
Connect to [[https://wiki.znc.in/ZNC][ZNC]]. Passwords are gotten from [[https://www.passwordstore.org/][Password Store]].
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(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)
|
||||||
|
)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* [[https://notmuchmail.org/notmuch-emacs/][Notmuch Emacs]]
|
||||||
|
Play nice with [[https://marlam.de/msmtp/][msmtp]] and fetch mail via custom [[https://github.com/alrayyes/dotfiles/blob/master/mutt/.local/bin/mailsync][mailsync]] shell script.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(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.
|
||||||
|
)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* [[https://orgmode.org/][Org mode]]
|
||||||
|
When moving entries up and down in the buffer use `j` and `k` instead of `↑` and `↓`
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(after! org
|
||||||
|
(map! :map org-mode-map
|
||||||
|
:n "M-j" #'org-metadown
|
||||||
|
:n "M-k" #'org-metaup)
|
||||||
|
)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
- Set default org directory
|
||||||
|
- When task is set to `DONE` [[https://orgmode.org/manual/Closing-items.html][add timestamp and give the opportunity to type in a note]]
|
||||||
|
- Show images in buffers as default
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(setq org-directory "~/Documents/org/"
|
||||||
|
org-log-done 'note
|
||||||
|
org-startup-with-inline-images t)
|
||||||
|
#+END_SRC
|
Loading…
Reference in New Issue
Block a user