mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-23 02:51:47 +00:00
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: Dan Carpenter <error27@gmail.com> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0acbc6c651
commit
70221395ba
1 changed files with 2 additions and 1 deletions
|
@ -498,7 +498,8 @@ values. To do the latter, you can stick the following in your .emacs file:
|
||||||
(let ((filename (buffer-file-name)))
|
(let ((filename (buffer-file-name)))
|
||||||
;; Enable kernel mode for the appropriate files
|
;; Enable kernel mode for the appropriate files
|
||||||
(when (and filename
|
(when (and filename
|
||||||
(string-match "~/src/linux-trees" filename))
|
(string-match (expand-file-name "~/src/linux-trees")
|
||||||
|
filename))
|
||||||
(setq indent-tabs-mode t)
|
(setq indent-tabs-mode t)
|
||||||
(c-set-style "linux-tabs-only")))))
|
(c-set-style "linux-tabs-only")))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue