From 46468bbd1dcdc4b273fb188e420a25458e3e5c29 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 2 Dec 2016 13:58:34 +0000 Subject: [PATCH] Tweak keybindings a bit --- modules/siren-full-ack.el | 2 ++ modules/siren-global-keybindings.el | 3 +-- modules/siren-text-manipulation.el | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/siren-full-ack.el b/modules/siren-full-ack.el index f98639a..2ef3608 100644 --- a/modules/siren-full-ack.el +++ b/modules/siren-full-ack.el @@ -39,6 +39,8 @@ "\\`Makefile\\'"))) (setq ack-prompt-for-directory 'unless-guessed) +;; Set global keybinding +(global-set-key (kbd "C-c C-a") 'ack) (provide 'siren-full-ack) ;;; siren-full-ack.el ends here diff --git a/modules/siren-global-keybindings.el b/modules/siren-global-keybindings.el index 8a8e78c..aa5ee6f 100644 --- a/modules/siren-global-keybindings.el +++ b/modules/siren-global-keybindings.el @@ -25,11 +25,10 @@ ;; Align to equal signs (global-set-key (kbd "C-x a =") 'siren-align-region-to-equals) -(global-set-key (kbd "M-]") 'siren-align-region-to-equals) (global-set-key (kbd "C-x a {") 'siren-align-region-to-opening-brace) ;; align-regexp -(global-set-key (kbd "C-c C-a") 'align-regexp) +(global-set-key (kbd "C-c a") 'align-regexp) ;; Toggle auto-fill-mode. (global-set-key (kbd "C-c q") 'auto-fill-mode) diff --git a/modules/siren-text-manipulation.el b/modules/siren-text-manipulation.el index 3bed8d4..bf880ed 100644 --- a/modules/siren-text-manipulation.el +++ b/modules/siren-text-manipulation.el @@ -41,6 +41,8 @@ (global-set-key (kbd "C-c [") 'smart-shift-left) (global-set-key (kbd "C-c ]") 'smart-shift-right) +(global-set-key (kbd "M-[") 'smart-shift-left) +(global-set-key (kbd "M-]") 'smart-shift-right) (global-set-key (kbd "C-c /") 'comment-or-uncomment-region-or-line) (global-set-key (kbd "C-c C-/") 'comment-or-uncomment-region-or-line)