[Wiki] created: Doc/Dev/Emacs

Jan Schneider <[email protected]>
Newsgroups gmane.comp.horde.cvs
Message-ID <[email protected]>
jan  Mon, 26 Jan 2009 13:55:54 -0500

Created page: http://wiki.horde.org/Doc/Dev/Emacs

+ Emacs configurations for Horde

++ Jan's configuration

<code>
(autoload 'po-mode "po-mode" "Major mode for translators to edit PO files" t)
(setq auto-mode-alist (cons '("\\.po\\'\\|\\.po\\." . po-mode)  
auto-mode-alist))

(require 'php-mode)
(add-to-list 'auto-mode-alist '("\\.dist\\'" . php-mode))
(add-to-list 'auto-mode-alist '("\\.phpt\\'" . php-mode))

(autoload 'javascript-mode "javascript" nil t)
(add-to-list 'auto-mode-alist (cons  "\\.js\\'" 'javascript-mode))

(global-set-key "\C-l" 'goto-line)

(c-add-style "horde"
   '((c-basic-offset . 4)
     (c-tab-always-indent . t)
     (indent-tabs-mode . nil)
     (fill-column . 79)
     (c-offsets-alist . ((inline-open . 0)
                         (defun-block-intro . +)
                         (block-open . -)
                         (statement-cont . +)
                         (statement-block-intro . +)
                         (arglist-close . 0)))
     (c-comment-only-line-offset (0 . 0))
     (c-hanging-braces-alist . ((defun-open after)
                                (substatement-open after)))
     (c-cleanup-list . (brace-else-brace brace-elseif-brace))))
(add-hook 'php-mode-common-hook
    '(lambda () (c-set-style "horde")))
</code>


--
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.