summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2007-11-25 12:10:59 +0000
committerUlrich Müller <ulm@gentoo.org>2007-11-25 12:10:59 +0000
commit7f582348e09d0c964141f2fcfe276dfed1114cb8 (patch)
tree0632562e6b9b8024a12df79ec508672b9489cd03
parentSupport for echangelog. (diff)
downloadebuild-mode-7f582348e09d0c964141f2fcfe276dfed1114cb8.tar.gz
ebuild-mode-7f582348e09d0c964141f2fcfe276dfed1114cb8.tar.bz2
ebuild-mode-7f582348e09d0c964141f2fcfe276dfed1114cb8.zip
Change keybindings, the previous ones collided with sh-mode.
svn path=/emacs-extra/gentoo-syntax/; revision=784
-rw-r--r--ChangeLog2
-rw-r--r--gentoo-syntax.el7
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 12d99f7..dcebbfa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,7 +10,7 @@
* gentoo-syntax.el: Move keyword lists to new files and load them.
(ebuild-mode-keyword): Ask first for the action, then for the
architecture. Suggestion by Flameeyes.
- (ebuild-mode-echangelog): New function, support for echangelog.
+ (ebuild-run-echangelog): New function, support for echangelog.
2007-11-17 Ulrich Mueller <ulm@gentoo.org>
diff --git a/gentoo-syntax.el b/gentoo-syntax.el
index a65cb59..9ed2fce 100644
--- a/gentoo-syntax.el
+++ b/gentoo-syntax.el
@@ -269,7 +269,7 @@ A formfeed is not considered whitespace by this function."
;;; echangelog support.
-(defun ebuild-mode-echangelog (text)
+(defun ebuild-run-echangelog (text)
(interactive "sLog entry: ")
(with-current-buffer (get-buffer-create "*echangelog*")
(setq buffer-read-only nil)
@@ -279,13 +279,14 @@ A formfeed is not considered whitespace by this function."
;;; Keybindings.
+;; sh-mode already uses the following C-c C-<letter> keys: cfilorstuwx
(define-key ebuild-mode-map "\C-c\C-e" 'ebuild-run-command)
;; The following keybindings are preliminary and may change
;; without prior warning.
+(define-key ebuild-mode-map "\C-c\C-a" 'ebuild-run-echangelog)
(define-key ebuild-mode-map "\C-c\C-k" 'ebuild-mode-keyword)
-(define-key ebuild-mode-map "\C-c\C-a" 'ebuild-mode-ekeyword)
-(define-key ebuild-mode-map "\C-c\C-l" 'ebuild-mode-echangelog)
+(define-key ebuild-mode-map "\C-c\C-y" 'ebuild-mode-ekeyword)
(and (< emacs-major-version 22)
;; make TAB key work