--- a/.emacs-my Wed Feb 11 19:04:28 2015 +0200
+++ b/.emacs-my Wed Feb 11 19:09:06 2015 +0200
@@ -2379,12 +2379,19 @@
(global-ede-mode 1)
(require 'srecode)
- (unless (boundp 'srecode-map-load-path)
- (setq srecode-map-load-path nil))
+ (defvar srecode-map-load-path nil)
(add-to-list 'srecode-map-load-path (locate-user-emacs-file "srecode/"))
(global-srecode-minor-mode 1)
(add-hook 'prog-mode-hook 'srecode-minor-mode)
+ (defun my-srecode-reload-templates ()
+ "Reload all templates under `srecode-map-load-path'. Useful
+during template developing."
+ (interactive)
+ (setq srecode-mode-table-list nil
+ srecode-current-map nil)
+ (srecode-map-update-map) )
+
(ignore-errors
(cedet-ectag-version-check)
(semantic-load-enable-primary-ectags-support))