Top > emacs
* .emacs [#k45c6b57]

** C言語のindent設定 [#we17460a]

- 21.4.1 で動作する設定をやっと見つけた。他ver で動くかは知らない。

*** http://d.hatena.ne.jp/gomi-box/20071022/1193036225 [#ee1cc484]

 ;; c-mode-hock(C言語のインデントの設定)
 (defun my-c-mode-hook ()
   (c-set-style "stroustrup")
   (setq indent-tabs-mode nil)
   (setq c-basic-offset 4)
   (c-toggle-auto-state -1)
   (define-key c-mode-base-map "\C-m" 'newline-and-indent))
(add-hook 'c-mode-hook 'my-c-mode-hook)

 ;; c++-mode-hock(C++のインデントの設定)
 (defun my-c++-mode-hook ()
   (c-set-style "stroustrup")
   (setq indent-tabs-mode nil)
   (setq c-basic-offset 4)
   (c-toggle-auto-state -1)
   (define-key c-mode-base-map "\C-m" 'newline-and-indent))
 (add-hook 'c++-mode-hook 'my-c++-mode-hook)

* 色 [#h2cc4464]

- http://d.hatena.ne.jp/gan2/20070727/1185502835
 M-x list-colors-display

- https://twitter.com/yoya/status/544079299171459073
--   https://www.gnu.org/software/emacs/manual/html_node/elisp/Faces-for-Font-Lock.html
- https://twitter.com/a_bicky/status/548847925103587328

* MacOSX [#macosx]

- http://www.sugitaku.net/blog/2012/03/24/[http://www.sugitaku.net/blog/2012/03/24/os-x-lion-%E3%81%AE-emacs-lisp-%E3%81%AE%E8%A8%AD%E5%AE%9A/ os-x-lion-の-emacs-lisp-の設定]

* その他 [#etc]

- Emacsのpackage.elのリポジトリにMELPAを追加する
-- https://monologu.com/add-melpa/

Reload   Diff   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes