Move key binding redifinitions after use-package initialization
This commit is contained in:
parent
2300c5a139
commit
7a5be62c07
1 changed files with 10 additions and 10 deletions
20
init.el
20
init.el
|
@ -45,16 +45,6 @@
|
||||||
;; agenda appear in English.
|
;; agenda appear in English.
|
||||||
(setq system-time-locale "C")
|
(setq system-time-locale "C")
|
||||||
|
|
||||||
;; Better than default: act on the region if active
|
|
||||||
(bind-key [remap upcase-word] #'upcase-dwim)
|
|
||||||
(bind-key [remap downcase-word] #'downcase-dwim)
|
|
||||||
(bind-key [remap capitalize-word] #'capitalize-dwim)
|
|
||||||
(bind-key [remap count-words-region] #'count-words)
|
|
||||||
|
|
||||||
(bind-key [remap just-one-space] #'cycle-spacing)
|
|
||||||
(bind-key [remap zap-to-char] #'zap-up-to-char)
|
|
||||||
(bind-key [remap buffer-menu] #'ibuffer)
|
|
||||||
|
|
||||||
(setq-default c-basic-offset 2)
|
(setq-default c-basic-offset 2)
|
||||||
(setq c-default-style "linux")
|
(setq c-default-style "linux")
|
||||||
|
|
||||||
|
@ -92,6 +82,16 @@
|
||||||
|
|
||||||
(straight-use-package 'use-package)
|
(straight-use-package 'use-package)
|
||||||
|
|
||||||
|
;; Better than default: act on the region if active
|
||||||
|
(bind-key [remap upcase-word] #'upcase-dwim)
|
||||||
|
(bind-key [remap downcase-word] #'downcase-dwim)
|
||||||
|
(bind-key [remap capitalize-word] #'capitalize-dwim)
|
||||||
|
(bind-key [remap count-words-region] #'count-words)
|
||||||
|
|
||||||
|
(bind-key [remap just-one-space] #'cycle-spacing)
|
||||||
|
(bind-key [remap zap-to-char] #'zap-up-to-char)
|
||||||
|
(bind-key [remap buffer-menu] #'ibuffer)
|
||||||
|
|
||||||
;;; Built-in packages
|
;;; Built-in packages
|
||||||
(use-package paren
|
(use-package paren
|
||||||
:config
|
:config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue