Emacs: Rebind a bunch of keybindings from C-x to C-c.
<https://emacs.stackexchange.com/a/42166>
This commit is contained in:
parent
287e1393fc
commit
fb639bfab1
|
@ -1,6 +1,6 @@
|
|||
;;; input.el --- Configure behaviour of input devices. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-18T14:56:00+0100>
|
||||
;; Time-stamp: <2020-03-27T17:06:27+0100>
|
||||
|
||||
;;; Commentary:
|
||||
;; * Setup mouse & keyboard behaviour.
|
||||
|
@ -68,7 +68,7 @@ With ARG, do it that many times."
|
|||
; Multiple cursors.
|
||||
(use-package multiple-cursors
|
||||
:init (global-unset-key (kbd "M-<down-mouse-1>"))
|
||||
:bind (("C-x M-m" . mc/edit-lines)
|
||||
:bind (("C-c m" . mc/edit-lines)
|
||||
("M-<mouse-1>" . mc/add-cursor-on-click)))
|
||||
|
||||
;; Edit multiple regions in the same way simultaneously.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-27T16:43:49+0100>
|
||||
;; Time-stamp: <2020-03-27T17:10:21+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -147,7 +147,7 @@
|
|||
(concat "-p=" (my/get-builddir))))
|
||||
|
||||
:bind
|
||||
("C-x M-i" . my/clang-include-fixer)
|
||||
("C-c i" . my/clang-include-fixer)
|
||||
)
|
||||
|
||||
(use-package find-file
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-27T14:01:23+0100>
|
||||
;; Time-stamp: <2020-03-27T17:09:20+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -155,7 +155,7 @@ collapse other projects."
|
|||
|
||||
;; Better commenting.
|
||||
(use-package smart-comment
|
||||
:bind ("C-x c" . smart-comment))
|
||||
:bind ("C-c c" . smart-comment))
|
||||
|
||||
;; Toggle betweeen beginning/end of line and beginning/end of code.
|
||||
(use-package mwim
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; git.el --- magit and stuff. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-18T14:57:49+0100>
|
||||
;; Time-stamp: <2020-03-27T17:09:45+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -37,8 +37,8 @@
|
|||
(setq magit-display-buffer-function #'my/magit-display-buffer)
|
||||
|
||||
:bind
|
||||
("C-x g" . magit-status)
|
||||
("C-x M-g" . magit-dispatch)
|
||||
("C-c g" . magit-status)
|
||||
("C-c M-g" . magit-dispatch)
|
||||
|
||||
:hook
|
||||
(after-save . magit-after-save-refresh-status)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-21T11:41:04+0100>
|
||||
;; Time-stamp: <2020-03-27T17:08:08+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -292,7 +292,7 @@
|
|||
)
|
||||
|
||||
:bind
|
||||
("C-x w" . whitespace-mode)
|
||||
("C-c w" . whitespace-mode)
|
||||
|
||||
:hook
|
||||
(prog-mode . my/ws-load-local-vars-first)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; tools.el --- Configure text tools. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-18T14:58:57+0100>
|
||||
;; Time-stamp: <2020-03-27T17:10:08+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -74,7 +74,7 @@
|
|||
))
|
||||
|
||||
:bind
|
||||
("C-x M-h" . easy-hugo)
|
||||
("C-c h" . easy-hugo)
|
||||
)
|
||||
|
||||
(use-package el2markdown
|
||||
|
|
Loading…
Reference in New Issue
Block a user