Skip to content

Commit

Permalink
add 'override' document and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Oct 28, 2012
1 parent 90ed7a9 commit 6a4d3b4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
5 changes: 4 additions & 1 deletion Changes
@@ -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
Expand Down
32 changes: 21 additions & 11 deletions README.md
Expand Up @@ -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'.

Expand All @@ -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
------------------------
Expand Down
2 changes: 1 addition & 1 deletion quickrun.el
Expand Up @@ -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
Expand Down

0 comments on commit 6a4d3b4

Please sign in to comment.