LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Emacs smart-snippet (https://www.linuxquestions.org/questions/linux-desktop-74/emacs-smart-snippet-619151/)

rejeep 02-06-2008 01:54 PM

Emacs smart-snippet
 
Hi!

I have problems with smart-snippets. I have this in .emacs:
Code:

(load "/home/rejeep/.emacs.d/smart-snippet.el")
(setq save-abbrevs nil)
(load "/home/rejeep/.emacs.d/snippets/html.el")

And in .emacs.d/snippets/html.el I have this:
Code:

(require 'smart-snippet)
(setq save-abbrevs nil)

(smart-snippet-with-abbrev-tables
 (html-mode-abbrev-table)
 (...)
 ("h1" "$><h1>$.</h1>" '(not in-comment?))
 ("h2" "$><h2>$.</h2>" '(not in-comment?))
 ("h3" "$><h3>$.</h3>" '(not in-comment?))
 ("h4" "$><h4>$.</h4>" '(not in-comment?))
 ("h5" "$><h5>$.</h5>" '(not in-comment?))
 (...)
 )

It works only if I put my cursor at the last line of .emacs.d/snippets/html.el and press C-x C-e

If I don't "eval", and abbrev-mode is acctive. I for example get this message if I try with h1:
Code:

expand-abbrev: Symbol's function definition is void: smart-snippet-abbrev-html-mode-h1
What can be the problem?

Thanks!


All times are GMT -5. The time now is 09:48 AM.