[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I enable minor mode, always?
From: |
PJ Weisberg |
Subject: |
Re: How can I enable minor mode, always? |
Date: |
Sat, 23 Oct 2010 10:57:49 +0000 |
On Thu, Oct 21, 2010 at 7:46 PM, paxxus <paxxus@hotmail.com> wrote:
>
> Hi,
>
> I want to always have the highlight-80+ mode enabled. In my .emacs file I
> have:
>
> (load "~/Emacs/highlight-80+.el")
> (require 'highlight-80+)
> (highlight-80+-mode 1)
>
> However, when I start Emacs the highlight-80+ is not active, I have to
> manually enable it for each new buffer I open.
>
> My other modes, I want to always have enabled, are enabled as follows (and
> it works for those modes):
> (show-paren-mode 1)
> (setq-default show-trailing-whitespace t)
> (setq column-number-mode t)
>
> As you can see each mode is enabled is slightly different ways, very
> confusing. Unfortunately none of these methods works for highlight-80+.
How about adding something to after-change-major-mode-hook? Use the
add-hook function.