General refactor + cleanup
This commit is contained in:
parent
1fd482fa51
commit
30402495fe
8 changed files with 56 additions and 52 deletions
|
@ -40,7 +40,7 @@ These modules are in their ideal load order.
|
|||
|
||||
+ :feature :: Broad modules that bring essential functionality to Emacs as an editor.
|
||||
+ :completion :: Swappable completion modules for narrowing down candidate lists quickly.
|
||||
+ :ui :: Modules that affect the DOOM user interface or experience.
|
||||
+ :ui :: Aesthetic modules that affect the Emacs interface or user experience.
|
||||
+ :tools :: Small modules that add specific, non-essential functionality to Emacs.
|
||||
+ :lang :: Modules that bring support for a language or group of languages to Emacs.
|
||||
+ :app :: Opinionated and heavy modules that totally transform Emacs' UI to serve a specific purpose.
|
||||
|
|
|
@ -164,12 +164,6 @@ across windows."
|
|||
;; Plugins
|
||||
;;
|
||||
|
||||
(def-package! evil-args
|
||||
:commands (evil-inner-arg evil-outer-arg
|
||||
evil-forward-arg evil-backward-arg
|
||||
evil-jump-out-args))
|
||||
|
||||
|
||||
(def-package! evil-commentary
|
||||
:commands (evil-commentary evil-commentary-yank evil-commentary-line)
|
||||
:config (evil-commentary-mode 1))
|
||||
|
@ -177,7 +171,6 @@ across windows."
|
|||
|
||||
(def-package! evil-easymotion
|
||||
:defer 1
|
||||
:commands evilem-define
|
||||
:config
|
||||
(defvar +evil--snipe-repeat-fn
|
||||
(evilem-create #'evil-snipe-repeat
|
||||
|
@ -263,15 +256,6 @@ across windows."
|
|||
(add-hook '+evil-esc-hook #'+evil|escape-exchange))
|
||||
|
||||
|
||||
(def-package! evil-indent-plus
|
||||
:commands (evil-indent-plus-i-indent
|
||||
evil-indent-plus-a-indent
|
||||
evil-indent-plus-i-indent-up
|
||||
evil-indent-plus-a-indent-up
|
||||
evil-indent-plus-i-indent-up-down
|
||||
evil-indent-plus-a-indent-up-down))
|
||||
|
||||
|
||||
(def-package! evil-matchit
|
||||
:commands (evilmi-jump-items evilmi-text-object global-evil-matchit-mode)
|
||||
:config (global-evil-matchit-mode 1)
|
||||
|
@ -341,10 +325,6 @@ the new algorithm is confusing, like in python or ruby."
|
|||
(push 'evil-escape-mode evil-mc-incompatible-minor-modes))
|
||||
|
||||
|
||||
(def-package! evil-textobj-anyblock
|
||||
:commands (evil-textobj-anyblock-inner-block evil-textobj-anyblock-a-block))
|
||||
|
||||
|
||||
(def-package! evil-snipe :demand t
|
||||
:init
|
||||
(setq evil-snipe-smart-case t
|
||||
|
@ -409,3 +389,24 @@ the new algorithm is confusing, like in python or ruby."
|
|||
(global-evil-visualstar-mode 1))
|
||||
|
||||
|
||||
;;
|
||||
;; Text object plugins
|
||||
;;
|
||||
|
||||
(def-package! evil-args
|
||||
:commands (evil-inner-arg evil-outer-arg
|
||||
evil-forward-arg evil-backward-arg
|
||||
evil-jump-out-args))
|
||||
|
||||
|
||||
(def-package! evil-indent-plus
|
||||
:commands (evil-indent-plus-i-indent
|
||||
evil-indent-plus-a-indent
|
||||
evil-indent-plus-i-indent-up
|
||||
evil-indent-plus-a-indent-up
|
||||
evil-indent-plus-i-indent-up-down
|
||||
evil-indent-plus-a-indent-up-down))
|
||||
|
||||
|
||||
(def-package! evil-textobj-anyblock
|
||||
:commands (evil-textobj-anyblock-inner-block evil-textobj-anyblock-a-block))
|
||||
|
|
|
@ -36,7 +36,7 @@ produces an url. Used by `+jump/online'.")
|
|||
(add-hook!
|
||||
'(imenu-after-jump-hook evil-jumps-post-jump-hook
|
||||
counsel-grep-post-action-hook dumb-jump-after-jump-hook)
|
||||
'recenter)
|
||||
#'recenter)
|
||||
|
||||
|
||||
;;
|
||||
|
|
|
@ -5,14 +5,12 @@
|
|||
(load! +commands)) ; my custom ex commands
|
||||
|
||||
(defvar +hlissner-dir
|
||||
(file-name-directory load-file-name))
|
||||
(eval-when-compile (file-name-directory load-file-name)))
|
||||
|
||||
(defvar +hlissner-snippets-dir
|
||||
(expand-file-name "snippets/" +hlissner-dir))
|
||||
|
||||
(setq user-mail-address "henrik@lissner.net"
|
||||
user-full-name "Henrik Lissner"
|
||||
epa-file-encrypt-to user-mail-address
|
||||
(setq epa-file-encrypt-to user-mail-address
|
||||
auth-sources (list (expand-file-name ".authinfo.gpg" +hlissner-dir)))
|
||||
|
||||
(defun +hlissner*no-authinfo-for-tramp (orig-fn &rest args)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; fun/doom-quit/config.el
|
||||
;;
|
||||
;;; ui/doom-quit/config.el
|
||||
|
||||
;; A silly module that prompts you with messages when you try to quit, like DOOM
|
||||
;; did. Some quotes are taken from Doom's quit-message list, others are random,
|
||||
;; nerdy references that no decent human being has any business recognizing.
|
||||
|
@ -28,7 +28,10 @@ http://doom.wikia.com/wiki/Quit_messages and elsewhere.")
|
|||
|
||||
(defun +doom-quit (&rest _)
|
||||
(if (doom-real-buffers-list)
|
||||
(y-or-n-p (format "%s Quit?" (nth (random (length +doom-quit-messages)) +doom-quit-messages)))
|
||||
(y-or-n-p
|
||||
(format "%s Quit?"
|
||||
(nth (random (length +doom-quit-messages))
|
||||
+doom-quit-messages)))
|
||||
t))
|
||||
|
||||
(setq confirm-kill-emacs #'+doom-quit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue