Minor refactors & reformatting
This commit is contained in:
parent
9f261788b9
commit
86722ee67e
3 changed files with 32 additions and 29 deletions
|
@ -172,7 +172,9 @@ windows (unlike `doom/window-maximize-buffer'). Activate again to undo."
|
||||||
(let* ((window (selected-window))
|
(let* ((window (selected-window))
|
||||||
(dedicated-p (window-dedicated-p window))
|
(dedicated-p (window-dedicated-p window))
|
||||||
(preserved-p (window-parameter window 'window-preserved-size))
|
(preserved-p (window-parameter window 'window-preserved-size))
|
||||||
(ignore-window-parameters t))
|
(ignore-window-parameters t)
|
||||||
|
(window-resize-pixelwise nil)
|
||||||
|
(frame-resize-pixelwise nil))
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(progn
|
(progn
|
||||||
(when dedicated-p
|
(when dedicated-p
|
||||||
|
|
|
@ -26,16 +26,18 @@ and Emacs states, and for non-evil users.")
|
||||||
;;
|
;;
|
||||||
;;; Keybind settings
|
;;; Keybind settings
|
||||||
|
|
||||||
(cond (IS-MAC
|
(cond
|
||||||
(setq mac-command-modifier 'super
|
(IS-MAC
|
||||||
ns-command-modifier 'super
|
(setq mac-command-modifier 'super
|
||||||
mac-option-modifier 'meta
|
ns-command-modifier 'super
|
||||||
ns-option-modifier 'meta
|
mac-option-modifier 'meta
|
||||||
mac-right-option-modifier 'none
|
ns-option-modifier 'meta
|
||||||
ns-right-option-modifier 'none))
|
;; Free up the right option for character composition
|
||||||
(IS-WINDOWS
|
mac-right-option-modifier 'none
|
||||||
(setq w32-lwindow-modifier 'super
|
ns-right-option-modifier 'none))
|
||||||
w32-rwindow-modifier 'super)))
|
(IS-WINDOWS
|
||||||
|
(setq w32-lwindow-modifier 'super
|
||||||
|
w32-rwindow-modifier 'super)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -197,7 +199,6 @@ localleader prefix."
|
||||||
(defun doom-reset-which-key-replacements-h ()
|
(defun doom-reset-which-key-replacements-h ()
|
||||||
(setq which-key-replacement-alist doom--initial-which-key-replacement-alist)))
|
(setq which-key-replacement-alist doom--initial-which-key-replacement-alist)))
|
||||||
;; general improvements to which-key readability
|
;; general improvements to which-key readability
|
||||||
(set-face-attribute 'which-key-local-map-description-face nil :weight 'bold)
|
|
||||||
(which-key-setup-side-window-bottom)
|
(which-key-setup-side-window-bottom)
|
||||||
(setq-hook! 'which-key-init-buffer-hook line-spacing 3)
|
(setq-hook! 'which-key-init-buffer-hook line-spacing 3)
|
||||||
|
|
||||||
|
|
|
@ -219,31 +219,31 @@
|
||||||
|
|
||||||
;;; :editor
|
;;; :editor
|
||||||
(map! (:when (featurep! :editor format)
|
(map! (:when (featurep! :editor format)
|
||||||
:n "gQ" #'+format:region)
|
:n "gQ" #'+format:region)
|
||||||
|
|
||||||
(:when (featurep! :editor rotate-text)
|
(:when (featurep! :editor rotate-text)
|
||||||
:n "]r" #'rotate-text
|
:n "]r" #'rotate-text
|
||||||
:n "[r" #'rotate-text-backward)
|
:n "[r" #'rotate-text-backward)
|
||||||
|
|
||||||
(:when (featurep! :editor multiple-cursors)
|
(:when (featurep! :editor multiple-cursors)
|
||||||
;; evil-multiedit
|
;; evil-multiedit
|
||||||
:v "R" #'evil-multiedit-match-all
|
:v "R" #'evil-multiedit-match-all
|
||||||
:n "M-d" #'evil-multiedit-match-symbol-and-next
|
:n "M-d" #'evil-multiedit-match-symbol-and-next
|
||||||
:n "M-D" #'evil-multiedit-match-symbol-and-prev
|
:n "M-D" #'evil-multiedit-match-symbol-and-prev
|
||||||
:v "M-d" #'evil-multiedit-match-and-next
|
:v "M-d" #'evil-multiedit-match-and-next
|
||||||
:v "M-D" #'evil-multiedit-match-and-prev
|
:v "M-D" #'evil-multiedit-match-and-prev
|
||||||
:nv "C-M-d" #'evil-multiedit-restore
|
:nv "C-M-d" #'evil-multiedit-restore
|
||||||
(:after evil-multiedit
|
(:after evil-multiedit
|
||||||
(:map evil-multiedit-state-map
|
(:map evil-multiedit-state-map
|
||||||
"M-d" #'evil-multiedit-match-and-next
|
"M-d" #'evil-multiedit-match-and-next
|
||||||
"M-D" #'evil-multiedit-match-and-prev
|
"M-D" #'evil-multiedit-match-and-prev
|
||||||
"RET" #'evil-multiedit-toggle-or-restrict-region
|
"RET" #'evil-multiedit-toggle-or-restrict-region
|
||||||
[return] #'evil-multiedit-toggle-or-restrict-region)))
|
[return] #'evil-multiedit-toggle-or-restrict-region)))
|
||||||
|
|
||||||
(:when (featurep! :editor snippets)
|
(:when (featurep! :editor snippets)
|
||||||
;; auto-yasnippet
|
;; auto-yasnippet
|
||||||
:i [C-tab] #'aya-expand
|
:i [C-tab] #'aya-expand
|
||||||
:nv [C-tab] #'aya-create))
|
:nv [C-tab] #'aya-create))
|
||||||
|
|
||||||
;;; :tools
|
;;; :tools
|
||||||
(when (featurep! :tools eval)
|
(when (featurep! :tools eval)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue