Permalink
Browse files

add 'override' document and bump version

  • Loading branch information...
1 parent 90ed7a9 commit 6a4d3b4e67d27684e3afc531c19ab053998ce257 @syohex committed Oct 28, 2012
Showing with 26 additions and 13 deletions.
  1. +4 −1 Changes
  2. +21 −11 README.md
  3. +1 −1 quickrun.el
View
@@ -1,6 +1,9 @@
Revision history for quickrun.el
-Version 1.7.1 2012/10/12 syohex
+Version 1.7.3 2012/10/28 syohex
+ - Support override existing command
+
+Version 1.7.2 2012/10/12 syohex
- Support HAML
Version 1.7.1 2012/10/02 syohex
View
@@ -127,17 +127,25 @@ User Defined Command
--------------------
`quickrun-add-command` define new command.
- (quickrun-add-command "c++/c11"
- '((:command . "g++")
- (:exec . ("%c -std=c++0x %o -o %n %s"
- "%n %a"))
- (:remove . ("%n")))
- :default "c++")
-
- (quickrun-add-command "pod"
- '((:command . "perldoc")
- (:exec . "%c -T -F %s"))
- :mode 'pod-mode)
+```` elisp
+(quickrun-add-command "c++/c11"
+ '((:command . "g++")
+ (:exec . ("%c -std=c++0x %o -o %e %s"
+ "%e %a"))
+ (:remove . ("%e")))
+ :default "c++")
+
+(quickrun-add-command "pod"
+ '((:command . "perldoc")
+ (:exec . "%c -T -F %s"))
+ :mode 'pod-mode)
+
+;; You can override existing command
+(quickrun-add-command "c/gcc"
+ '((:exec . ("%c -std=c++0x %o -o %e %s"
+ "%e %a")))
+ :override t)
+````
quickrun-add-command has key parameters, ':default', ':mode'.
@@ -149,6 +157,8 @@ quickrun-add-command has key parameters, ':default', ':mode'.
`:mode 'pod-mode` means that quickrun uses this command when major-mode is pod-mode.
+* Override existing command if `:override` parameter is true
+
Add new Language setting
------------------------
View
@@ -4,7 +4,7 @@
;; Author: Syohei YOSHIDA <syohex@gmail.com>
;; URL: https://github.com/syohex/emacs-quickrun
-;; Version: 1.7.2
+;; Version: 1.7.3
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by

0 comments on commit 6a4d3b4

Please sign in to comment.