mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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.
24 lines
426 B
EmacsLisp
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
|