Move key binding redifinitions after use-package initialization

This commit is contained in:
Dimitri Lozeve 2021-10-13 18:24:00 +02:00
parent 2300c5a139
commit 7a5be62c07

20
init.el
View file

@ -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