emacs-devel
[Top][All Lists]
Advanced

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

Re: cc-mode adds newlines


From: Kai Grossjohann
Subject: Re: cc-mode adds newlines
Date: Wed, 24 Nov 2004 11:12:36 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Kevin Rodgers <address@hidden> writes:

> 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)))

I neglected to say "using Customize" somewhere.

>> 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?

Both are implementations of what I want, but I haven't looked at
things in sufficient detail to figure out which of the implementations
is better.

Kai





reply via email to

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