LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


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

Rep: Reputation: 15
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!
 
  


Reply


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 02:41 AM
Smart problem adding new channel in Smart-beta google01103 SUSE / openSUSE 1 11-21-2006 07:17 AM
Smart snippets in emacs Sune Simonsen Linux - Software 9 10-26-2005 05:15 PM
How do I compile a code snippet. to test my box?? _Mhz Linux - Newbie 4 07-10-2002 11:03 AM
calendar-related code snippet request Citizen Bleys Programming 2 12-11-2001 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:35 PM.

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