Add better default shortcuts
This commit is contained in:
parent
086a6d2e3c
commit
2300c5a139
1 changed files with 9 additions and 9 deletions
18
init.el
18
init.el
|
@ -45,15 +45,15 @@
|
|||
;; agenda appear in English.
|
||||
(setq system-time-locale "C")
|
||||
|
||||
;; replace buffer-menu with ibuffer
|
||||
(global-set-key (kbd "C-x C-b") #'ibuffer)
|
||||
|
||||
(global-set-key (kbd "M-z") #'zap-up-to-char)
|
||||
|
||||
;; Better than default: act on the region if active
|
||||
(global-set-key (kbd "M-c") 'capitalize-dwim)
|
||||
(global-set-key (kbd "M-l") 'downcase-dwim)
|
||||
(global-set-key (kbd "M-u") 'upcase-dwim)
|
||||
(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 c-default-style "linux")
|
||||
|
@ -176,7 +176,7 @@
|
|||
:straight t
|
||||
:bind
|
||||
(("C-;" . embark-act) ;; pick some comfortable binding
|
||||
("M-;" . embark-dwim)
|
||||
;("M-;" . embark-dwim)
|
||||
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
|
||||
:init
|
||||
;; Optionally replace the key help with a completing-read interface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue