[emacs] change tab-width to 4 spaces for objc-mode (and thus objj-mode)
This commit is contained in:
parent
cacd1914ac
commit
37836f1d1f
1 changed files with 11 additions and 0 deletions
11
emacs
11
emacs
|
|
@ -162,6 +162,17 @@
|
|||
|
||||
(require 'objj-mode)
|
||||
|
||||
;; customize objj-mode, which is based on objc-mode, which is based on cc-mode.
|
||||
|
||||
(defconst sjs-objc-style
|
||||
'(("objc"
|
||||
"My ObjC style")))
|
||||
(defun my-objc-mode-hook ()
|
||||
;;(c-add-style "objc" my-objc-style)
|
||||
(setq tab-width 4
|
||||
c-basic-offset tab-width))
|
||||
(add-hook 'objc-mode-hook 'my-objc-mode-hook)
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;
|
||||
;; mojo (webOS) ;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue