featurep! will be renamed modulep! in the future, so it's been deprecated. They have identical interfaces, and can be replaced without issue. featurep! was never quite the right name for this macro. It implied that it had some connection to featurep, which it doesn't (only that it was similar in purpose; still, Doom modules are not features). To undo such implications and be consistent with its namespace (and since we're heading into a storm of breaking changes with the v3 release anyway), now was the best opportunity to begin the transition.
26 lines
611 B
EmacsLisp
26 lines
611 B
EmacsLisp
;;; config/default/+emacs.el -*- lexical-binding: t; -*-
|
|
|
|
(require 'projectile) ; we need its keybinds immediately
|
|
|
|
|
|
;;
|
|
;;; Reasonable defaults
|
|
|
|
(setq shift-select-mode t)
|
|
(delete-selection-mode +1)
|
|
|
|
(use-package! expand-region
|
|
:commands (er/contract-region er/mark-symbol er/mark-word)
|
|
:config
|
|
(defadvice! doom--quit-expand-region-a (&rest _)
|
|
"Properly abort an expand-region region."
|
|
:before '(evil-escape doom/escape)
|
|
(when (memq last-command '(er/expand-region er/contract-region))
|
|
(er/contract-region 0))))
|
|
|
|
|
|
;;
|
|
;;; Keybinds
|
|
|
|
(when (modulep! +bindings)
|
|
(load! "+emacs-bindings"))
|