2012-03-29 01:35:38 +08:00
|
|
|
;; Emacs settings.
|
2018-01-01 12:43:02 +08:00
|
|
|
;; Copyright (C) 2012-2018 Free Software Foundation, Inc.
|
2012-03-29 01:35:38 +08:00
|
|
|
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation; either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(
|
|
|
|
(tcl-mode . ((tcl-indent-level . 4)
|
|
|
|
(tcl-continued-indent-level . 4)
|
|
|
|
(indent-tabs-mode . t)))
|
|
|
|
(nil . ((bug-reference-url-format . "http://sourceware.org/bugzilla/show_bug.cgi?id=%s")))
|
|
|
|
(c-mode . ((c-file-style . "GNU")
|
2016-12-20 21:42:10 +08:00
|
|
|
(mode . c++)
|
|
|
|
(indent-tabs-mode . t)
|
|
|
|
(tab-width . 8)
|
|
|
|
(c-basic-offset . 2)
|
|
|
|
(eval . (c-set-offset 'innamespace 0))
|
|
|
|
))
|
2017-07-01 23:45:57 +08:00
|
|
|
(c++-mode . ((eval . (when (fboundp 'c-toggle-comment-style)
|
|
|
|
(c-toggle-comment-style 1)))))
|
2012-03-29 01:35:38 +08:00
|
|
|
)
|