mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(keybindings): add cmd+shift+p and cmd+/ keybindings from VSCode
Makes cmd+shift+p open the command palette and cmd+/ toggle comments, as they do in VSCode. This should ease my recent usage of Cursor/VSCode alongside Emacs, as certain keybindings I have in Emacs cannot be setup in VSCode to work in all contexts. Hence I've had to get used to cmd+shift+p instead of C-x C-m, as the later does not want to play ball when a terminal is active in VSCode.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
(siren-general-define-key
|
||||
;; Enable alternative to M-x.
|
||||
"C-x C-m" 'execute-extended-command
|
||||
"s-P" 'execute-extended-command
|
||||
|
||||
;; Enable dabbrev-expand via custom keybinding.
|
||||
"C-x M-/" 'dabbrev-expand
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
:general
|
||||
("M-x" 'amx)
|
||||
("C-x C-m" 'amx)
|
||||
("s-P" 'amx)
|
||||
|
||||
:custom
|
||||
(amx-backend 'ido)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
(use-package smex
|
||||
:general
|
||||
("C-x C-m" 'smex)
|
||||
("C-c C-m" 'smex)
|
||||
("s-P" 'smex)
|
||||
("M-X" 'smex-major-mode-commands)
|
||||
("C-c C-c M-x" 'execute-extended-command)
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
:straight (:type built-in)
|
||||
|
||||
:general
|
||||
("s-/" 'comment-or-uncomment-region-or-line)
|
||||
("C-c /" 'comment-or-uncomment-region-or-line)
|
||||
("C-c C-/" 'comment-or-uncomment-region-or-line)
|
||||
("C-c C-_" 'comment-or-uncomment-region-or-line)
|
||||
|
||||
Reference in New Issue
Block a user