summaryrefslogtreecommitdiffstats
path: root/build-root/emacs-lisp/plugin.el
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-01-02 12:22:48 -0500
committerFlorin Coras <florin.coras@gmail.com>2017-01-02 18:59:50 +0000
commit605c63678272af5caeee1d309de6319eb0ac69b0 (patch)
tree8577818af659aeb0bab7f03630f78dfe3650ceac /build-root/emacs-lisp/plugin.el
parent5e6b9580f202188cbe158368bdbe35c3f39973d7 (diff)
Update emacs plugin generator skeleton
Generated code compiles with the new build scheme, works, etc. Change-Id: I147aa5fa580a71ef25615b02277870867e475042 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'build-root/emacs-lisp/plugin.el')
-rw-r--r--build-root/emacs-lisp/plugin.el11
1 files changed, 4 insertions, 7 deletions
diff --git a/build-root/emacs-lisp/plugin.el b/build-root/emacs-lisp/plugin.el
index 006ae54dc11..4f1361a32f2 100644
--- a/build-root/emacs-lisp/plugin.el
+++ b/build-root/emacs-lisp/plugin.el
@@ -8,15 +8,12 @@
(makunbound 'PLUGIN-NAME)
(setq plugin-name (read-string "Plugin name: "))
(setq PLUGIN-NAME (upcase plugin-name))
- (setq cmd-args (concat "mkdir -p " plugin-name "-plugin/" plugin-name))
+ (find-file (concat plugin-name ".am"))
+ (skel-plugin-makefile-am-fragment)
+ (setq cmd-args (concat "mkdir -p " plugin-name))
(shell-command cmd-args)
- (setq cd-args (concat start-dir plugin-name "-plugin"))
+ (setq cd-args (concat start-dir "/" plugin-name))
(setq default-directory cd-args)
- (find-file "Makefile.am")
- (skel-plugin-makefile)
- (find-file "configure.ac")
- (skel-plugin-configure)
- (setq default-directory (concat cd-args "/" plugin-name))
(find-file (concat plugin-name ".api"))
(skel-plugin-api)
(find-file (concat plugin-name "_all_api_h.h"))