git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Tidy up some rev-list-related stuff

From
Jon Seymour <jon.seymour@gmail.com>
Date
Jun 9, 2005, 09:57 UTC
Message-ID
<2cfc403205060902571b99af3f@mail.gmail.com>
In-Reply-To
<2cfc4032050608180650e5ef12@mail.gmail.com>
Show 20 quoted lines
> Speaking of which, I can't emacs to indent properly even when I use
> this suggestion from that document:
> 
>     (defun linux-c-mode ()
>       "C mode with adjusted defaults for use with the Linux kernel."
>       (interactive)
>       (c-mode)
>       (c-set-style "K&R")
>       (setq tab-width 8)
>       (setq indent-tabs-mode t)
>       (setq c-basic-offset 8))
> 
>     This will define the M-x linux-c-mode command.  When hacking on a
>     module, if you put the string -*- linux-c -*- somewhere on the first
>     two lines, this mode will be automatically invoked. Also, you may want
>     to add
> 
>     (setq auto-mode-alist (cons '("/home/jon/.*/.*\\.[ch]$" . linux-c-mode)
>                             auto-mode-alist))
> 

Actually, these instructions do work for me. An earlier version of the instructions I pulled from a google hit didn't work.

jon.
Previous: Jon Seymour
Message 3 of 3 in “Tidy up some rev-list-related stuff”
  1. Tidy up some rev-list-related stuffPetr Baudis, Jun 8, 2005
  2. Jon SeymourJun 9, 2005
  3. Jon SeymourJun 9, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.