File: emacs.el

package info (click to toggle)
janus 0.7.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 15,360 kB
  • sloc: ansic: 130,260; makefile: 554; sh: 153; lisp: 9
file content (15 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
;; Include this in your ~/.emacs file for editing Janus code in Emacs.

;; Run "M-x janus-mode" to set the coding style for Janus.
(defun janus-mode ()
  "Sets the Janus coding style in c-mode."
  (interactive)
  ;; c-basic-offset and tab-width can be set to personal preference as long as
  ;; they are the same. They will expand to the single tab required by the Janus
  ;; coding style.
  (setq c-basic-offset 2
        tab-width 2
        indent-tabs-mode t)
  (c-set-offset 'arglist-intro '+)
  (c-set-offset 'arglist-cont-nonempty '+)
  (c-set-offset 'case-label '+))