Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70221395 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

fix emacs indenting howto filename expansion



I don't think emacs understands tilde expansion, so use
"expand-file-name" to do that.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0acbc6c6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -498,7 +498,8 @@ values. To do the latter, you can stick the following in your .emacs file:
            (let ((filename (buffer-file-name)))
              ;; Enable kernel mode for the appropriate files
              (when (and filename
                         (string-match "~/src/linux-trees" filename))
                         (string-match (expand-file-name "~/src/linux-trees")
                                       filename))
                (setq indent-tabs-mode t)
                (c-set-style "linux-tabs-only")))))