summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-09-18 15:50:47 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-09-18 15:50:47 +0200
commitc3c3f03b11abfbf30f5557bdabe753d426d9bff3 (patch)
tree921b9c32312254a3aa6a48f93727e2634f57afb3 /.emacs
parentd15862594a31be740e325fc5a601d7d4c3231861 (diff)
downloaddotfiles-c3c3f03b11abfbf30f5557bdabe753d426d9bff3.tar.xz
Only define project-wide shell commands for Emacs<28
Diffstat (limited to '.emacs')
-rw-r--r--.emacs6
1 files changed, 3 insertions, 3 deletions
diff --git a/.emacs b/.emacs
index bfea698..6eea940 100644
--- a/.emacs
+++ b/.emacs
@@ -158,8 +158,6 @@
(global-set-key (kbd "C-c m i") 'info-display-manual)
(global-set-key (kbd "C-c m m") 'man)
(global-set-key (kbd "C-c p g") 'my/magit-project)
-(global-set-key (kbd "C-c p !") (my/make-project-wide 'shell-command))
-(global-set-key (kbd "C-c p &") (my/make-project-wide 'async-shell-command))
(global-set-key (kbd "C-c w c") 'whitespace-cleanup)
(global-set-key (kbd "C-c w f") 'page-break-lines-mode)
(global-set-key (kbd "C-c w m") 'whitespace-mode)
@@ -167,7 +165,9 @@
(unless (>= emacs-major-version 28)
(global-set-key (kbd "C-c p c") (my/make-project-wide 'compile))
- (global-set-key (kbd "C-c p f") 'project-find-file))
+ (global-set-key (kbd "C-c p f") 'project-find-file)
+ (global-set-key (kbd "C-c p !") (my/make-project-wide 'shell-command))
+ (global-set-key (kbd "C-c p &") (my/make-project-wide 'async-shell-command)))
(rg-enable-default-bindings) ; Uses the C-c s prefix.