projects
/
pelican-mode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5bfb2e9
)
Autoload hooked `pelican-enable-if-site`.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Fri, 23 Jun 2017 22:42:45 +0000
(
00:42
+0200)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Fri, 23 Jun 2017 22:42:45 +0000
(
00:42
+0200)
pelican-mode.el
patch
|
blob
|
history
diff --git
a/pelican-mode.el
b/pelican-mode.el
index
fe4eea0
..
4671254
100644
(file)
--- a/
pelican-mode.el
+++ b/
pelican-mode.el
@@
-176,11
+176,6
@@
"Check if this buffer is under a Pelican site."
(not (null (pelican-find-root))))
"Check if this buffer is under a Pelican site."
(not (null (pelican-find-root))))
-(defun pelican-enable-if-site ()
- "Enable `pelican-mode' if this buffer is under a Pelican site."
- (when (pelican-is-in-site)
- (pelican-mode 1)))
-
(defun pelican-make (target)
"Execute TARGET in a Makefile at the root of the site."
(interactive "sMake Pelican target: ")
(defun pelican-make (target)
"Execute TARGET in a Makefile at the root of the site."
(interactive "sMake Pelican target: ")
@@
-227,6
+222,12
@@
to show buffer size and position in mode-line."
:keymap pelican-keymap
:group 'pelican)
:keymap pelican-keymap
:group 'pelican)
+;;;###autoload
+(defun pelican-enable-if-site ()
+ "Enable `pelican-mode' if this buffer is under a Pelican site."
+ (when (pelican-is-in-site)
+ (pelican-mode 1)))
+
;;;###autoload
(add-hook 'markdown-mode-hook 'pelican-enable-if-site)
;;;###autoload
(add-hook 'markdown-mode-hook 'pelican-enable-if-site)