(use-package evil
:demand t
:hook (view-mode . evil-motion-state)
+ :init
+ (setq evil-want-integration nil)
:config (evil-mode 1)
(general-swap-key nil '(normal motion) ";" ":")
(setq evil-want-visual-char-semi-exclusive t))
#+end_src
+#+begin_src emacs-lisp
+(use-package evil-collection
+ :after evil
+ :config
+ (evil-collection-init))
+#+end_src
+
#+begin_src emacs-lisp
(use-package evil-escape
:demand t
(push #'minibufferp evil-escape-inhibit-functions))
#+end_src
+#+begin_src emacs-lisp
+(use-package evil-magit
+ :after magit
+ :config
+ (evil-set-initial-state 'git-commit-mode 'insert))
+#+end_src
+
#+begin_src emacs-lisp
(use-package evil-org
:hook (org-mode . evil-org-mode)
#+begin_src emacs-lisp
(amin--leader-keys
+ "/" '(:ignore t :wk "search")
+
"B" '(:ignore t :wk "Borg")
"BA" 'borg-activate
"Ba" 'borg-assimilate
#+begin_src emacs-lisp
(use-package swiper
- :general (:states 'normal "/" 'swiper)
+ :general (:states '(normal motion) "/" 'swiper)
+ (amin--leader-keys "//" 'swiper)
:bind (([remap isearch-forward] . swiper)
([remap isearch-backward] . swiper)))
#+end_src
See [[notmuch:id:87muuqsvci.fsf@fencepost.gnu.org][bug follow-up]].
-#+begin_src emacs-lisp
-(defun amin/notmuch ()
- "Delete other windows, then launch `notmuch'."
- (interactive)
- (require 'notmuch)
- (delete-other-windows)
- (notmuch))
-
-;; (map!
-;; :leader
-;; :desc "notmuch" :n "m" #'amin/notmuch
-;; (:desc "search" :prefix "/"
-;; :desc "notmuch" :n "m" #'counsel-notmuch))
-#+end_src
-
#+begin_src emacs-lisp
(defvar amin-maildir "~/mail")
(setq mml-secure-openpgp-encrypt-to-self t
mml-secure-openpgp-sign-with-sender t))
+(defun amin/notmuch ()
+ "Delete other windows, then launch `notmuch'."
+ (interactive)
+ (delete-other-windows)
+ (notmuch))
+
(use-package notmuch
:general (amin--leader-keys "m" 'amin/notmuch)
+ :commands notmuch
:config
(setq notmuch-hello-sections
'(notmuch-hello-insert-header
(notmuch-tree-archive-thread))))
)
-;; (use-package counsel-notmuch
-;; :commands counsel-notmuch)
+(use-package counsel-notmuch
+ :general (amin--leader-keys "/m" 'counsel-notmuch))
(after! notmuch-crypto
(setq notmuch-crypto-process-mime t))