Files
.emacs.d/modules/editor/siren-smex.el
Jim Myhrberg ed5432641a 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.
2025-06-28 17:14:37 +01:00

24 lines
426 B
EmacsLisp

;;; siren-smex.el --- jimeh's Emacs Siren: smex configuration.
;;; Commentary:
;; Replace M-x with the more powerful smex.
;;; Code:
(use-package smex
:general
("C-x C-m" 'smex)
("s-P" 'smex)
("M-X" 'smex-major-mode-commands)
("C-c C-c M-x" 'execute-extended-command)
:custom
(smex-save-file (siren-cache-dir "smex-items"))
:config
(smex-initialize))
(provide 'siren-smex)
;;; siren-smex.el ends here