Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 02-06-2008, 02:54 PM   #1
Registered: Mar 2007
Distribution: Gentoo
Posts: 49

Rep: Reputation: 15
Emacs smart-snippet


I have problems with smart-snippets. I have this in .emacs:
(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:
(require 'smart-snippet)
(setq save-abbrevs nil)

 ("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:
expand-abbrev: Symbol's function definition is void: smart-snippet-abbrev-html-mode-h1
What can be the problem?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 03:41 AM
Smart problem adding new channel in Smart-beta google01103 SUSE / openSUSE 1 11-21-2006 08:17 AM
Smart snippets in emacs Sune Simonsen Linux - Software 9 10-26-2005 06:15 PM
How do I compile a code snippet. to test my box?? _Mhz Linux - Newbie 4 07-10-2002 12:03 PM
calendar-related code snippet request Citizen Bleys Programming 2 12-11-2001 01:11 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration