("gc" . evilnc-comment-or-uncomment-lines))
:custom (evilnc-invert-comment-line-by-line nil))
#+end_src
-** Undo tree
-Fix the oopsies! Maybe replace with undo-fu or Emacs 28 built in undo-redo.
+** Undo redo
+Fix the oopsies!
#+begin_src emacs-lisp
- (use-package undo-tree
- :custom
- (undo-tree-auto-save-history t)
- (undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo-tree")))
- :config
- (global-undo-tree-mode)
- (evil-set-undo-system 'undo-tree))
+ (evil-set-undo-system 'undo-tree)
#+end_src
** Number incrementing
Add back C-a/C-x
(add-to-list 'org-structure-template-alist '("ipy" . "src python :tangle ~/.ipython/"))
(add-to-list 'org-structure-template-alist '("pi" . "src conf :tangle ~/.config/picom/picom.conf"))
(add-to-list 'org-structure-template-alist '("git" . "src conf :tangle ~/.gitconfig"))
- (add-to-list 'org-structure-template-alist '("du" . "src conf :tangle ~/.config/dunst/dunstrc")))
+ (add-to-list 'org-structure-template-alist '("du" . "src conf :tangle ~/.config/dunst/dunstrc"))
+ (add-to-list 'org-structure-template-alist '("ro" . "src plain :tangle ~/.config/rofi/config.rasi")))
#+end_src
* Autocompletion
** Ivy
smtpmail-stream-type 'ssl
smtpmail-smtp-service '465
mu4e-change-filenames-when-moving t
- message-kill-buffer-on-exit t
mu4e-get-mail-command "offlineimap -q"
message-citation-line-format "On %a %d %b %Y at %R, %f wrote:\n"
message-citation-line-function 'message-insert-formatted-citation-line
- mu4e-context-policy "pick-first"
+ mu4e-completing-read-function 'ivy-completing-read
+ mu4e-confirm-quit nil
+ mail-user-agent 'mu4e-user-agent
mu4e-contexts
`( ,(make-mu4e-context
:name "school"
:match-func (lambda (msg)
(when msg
(string-match-p "^/school" (mu4e-message-field msg :maildir))))
- :vars '( (user-mail-address . "abhojwani22@nobles.edu")
- (mu4e-sent-folder . "/school/Sent")
- (mu4e-drafts-folder . "/school/Drafts")
- (mu4e-trash-folder . "/school/Trash")
- (mu4e-refile-folder . "/school/Archive")
- (user-mail-address . "abhojwani22@nobles.edu")
- (smtpmail-smtp-user . "abhojwani22@nobles.edu")
- (smtpmail-smtp-server . "smtp.gmail.com")))
+ :vars '((user-mail-address . "abhojwani22@nobles.edu")
+ (mu4e-sent-folder . "/school/Sent")
+ (mu4e-drafts-folder . "/school/Drafts")
+ (mu4e-trash-folder . "/school/Trash")
+ (mu4e-refile-folder . "/school/Archive")
+ (user-mail-address . "abhojwani22@nobles.edu")
+ (smtpmail-smtp-user . "abhojwani22@nobles.edu")
+ (smtpmail-smtp-server . "smtp.gmail.com")))
,(make-mu4e-context
:name "personal"
:enter-func (lambda () (mu4e-message "Entering personal context"))
:match-func (lambda (msg)
(when msg
(string-match-p "^/personal" (mu4e-message-field msg :maildir))))
- :vars '(
- (mu4e-sent-folder . "/personal/Sent")
+ :vars '((mu4e-sent-folder . "/personal/Sent")
(mu4e-drafts-folder . "/personal/Drafts")
(mu4e-trash-folder . "/personal/Trash")
(mu4e-refile-folder . "/personal/Archive")
(add-to-list 'mu4e-bookmarks
'(:name "Unified inbox"
:query "maildir:\"/personal/INBOX\" or maildir:\"/school/INBOX\""
- :key ?b)))
+ :key ?b))
+ :hook ((mu4e-compose-mode . flyspell-mode)
+ (mu4e-view-mode-hook . turn-on-visual-line-mode)))
#+end_src
** Calendar
#+begin_src emacs-lisp
#+begin_src emacs-lisp
(setq tramp-default-method "ssh")
#+end_src
+** Don't ask about following symlinks in vc
+#+begin_src emacs-lisp
+ (setq vc-follow-symlinks t)
+#+end_src
* Functions
** Easily convert splits
Converts splits from horizontal to vertical and vice versa. Lifted from EmacsWiki.
highlight = "#777777"
timeout = 0
#+end_src
+** Rofi
+Modus vivendi theme that extends DarkBlue.
+#+begin_src plain :tangle ~/.config/rofi/config.rasi
+@import "/usr/share/rofi/themes/DarkBlue.rasi"
+ * {
+ selected-normal-foreground: rgba ( 0, 0, 0, 100 % );
+ foreground: rgba ( 255, 255, 255, 100 % );
+ background: rgba ( 0, 0, 0, 100 % );
+ lightfg: rgba ( 255, 255, 255, 100 % );
+ selected-normal-background: rgba ( 255, 255, 255, 100 % );
+}
+#+end_src