[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cc-mode adds newlines

From: Kevin Rodgers
Subject: Re: cc-mode adds newlines
Date: Mon, 22 Nov 2004 12:20:03 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Kai Grossjohann wrote:
> Perhaps it would be useful if there was an easy way to set
> require-final-newline buffer-locally.

What is not easy about

(add-hook 'c-mode-hook
          (lambda ()
            (set (make-local-variable 'require-final-newline) nil)))

> That would work for other variables as well, and it would work for
> other modes.

Indeed it does.

> What do people think about a "mode specific variables" feature where
> users can customize that they want the variable foo to have the value
> bar in quux-mode?

What do you think about Stefan's custom-based proposal (later in the
thread) and my response?

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]