Skip to content

Commit

Permalink
Keep emacs configuration in one configuration file.
Browse files Browse the repository at this point in the history
On 07.03.2011 19:04, Lennart Poettering wrote:
>
> Oh, I had assumed that .vimrc trick would allow project-wide vim
> modelines without having to edit each and every single file.
>
> Currently, every file does contain an emacs modeline at the top. It
> would be fair I guess to add a vim modeline to all those files too, even
> though it's not necessarily pretty.
Hi,
maybe it makes sense to go in the opposite direction: add .dir-locals.el
in the top directory. The settings are actually identical in all .[ch]
files.
  • Loading branch information
keszybz authored and poettering committed Mar 8, 2011
1 parent b670e92 commit 85f0c93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; Sets emacs variables based on mode.
; A list of (major-mode . ((var1 . value1) (var2 . value2)))
; Mode can be nil, which gives default values.

((nil . ((indent-tabs-mode . nil)
(tab-width . 8)))
)

0 comments on commit 85f0c93

Please sign in to comment.