LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-13-2009, 02:25 PM   #1
nb85
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Emacs: Enable minor mode in all buffers


Hi all,

Does anyone know how to enable an emacs minor mode by default for all buffers?

For example, I have the minor mode highlight-80+-mode that I can toggle with M-x highlight-80+mode, however I would like this to be on by default.

Any pointers to documentation/config/lisp stuff appreciated.

Many thanks,

Nick
 
Old 04-13-2009, 03:14 PM   #2
kandiru
Member
 
Registered: Mar 2009
Location: Genoa, Italy
Distribution: Slackware
Posts: 33

Rep: Reputation: 16
Hello,

may be you can find something useful here

http://www.linuxjournal.com/node/2801/print

in the section related to "Using hooks"

Hope this could help you

Bye

David
 
Old 04-13-2009, 03:56 PM   #3
nb85
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kandiru View Post
Hello,

may be you can find something useful here

http://www.linuxjournal.com/node/2801/print

in the section related to "Using hooks"

Hope this could help you

Bye

David
Thanks for your reply. The site you provided was very useful indeed. I have added a hook to my .emacs for c-mode that does exactly what was required.

Thanks again,

Nick
 
  


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
How do I enable emacs Backspace on remote logins? jkcunningham Linux - General 18 09-21-2009 03:51 PM
LXer: Emacs tips: Windows and buffers LXer Syndicated Linux News 0 06-01-2006 09:03 AM
Emacs: sgml mode lackluster Programming 4 04-23-2006 08:50 PM
.emacs file and Scheme buffers jrdioko Linux - Software 0 09-30-2005 11:22 PM
emacs: continuous newline (minor mode?) tek1024 Linux - Software 1 08-11-2004 02:09 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration