>>>>> "Joaquin" == Joaquin Cuenca Abela <[EMAIL PROTECTED]> writes:

Joaquin> But I see your point about hundreds of kb of bloat (you're
Joaquin> overacting a bit, but I see your point :) The only problem
Joaquin> that I try to solve is: When I open an abiword file with
Joaquin> emacs, I always have to type M-x set-variable [ret] tab-width
Joaquin> [ret] 4 [ret].  And I don't want to set that in my .emacs,
Joaquin> because I have others projects which use tab=8 (but
Joaquin> indentation=4... an IMO saner choice).

Joaquin> So if we want to stay like now (tab=4, indentation=4) I
Joaquin> propose to add the lines that Jesper has send to each Abiword
Joaquin> file to make emacs users happier.

Oh no :)  What you want in your .emacs is this then:

(defun abi-c-mode ()
  "C mode with adjusted defaults for use with the AbiWord sources."
  (interactive)
  (c++-mode)
  (c-set-style "K&R")
  (setq c-basic-offset 4)
  (setq indent-tabs-mode t)
  (show-paren-mode 1)
  (setq tab-width 4))

(setq auto-mode-alist 
      (cons '(".*/abiword/.*\\.[ch].*$" . abi-c-mode)
            auto-mode-alist))


Adjust the path expression as necessary (i.e., where it sez
/abiword/).

Jesper

Hope you had a nice New Year - and that others will have one :)

Reply via email to