fix indent
This commit is contained in:
parent
179372135d
commit
4a3d8a46f9
@ -2,10 +2,10 @@
|
|||||||
;; c++ Mode
|
;; c++ Mode
|
||||||
;;----------------------------------------------------------------------------
|
;;----------------------------------------------------------------------------
|
||||||
(add-hook 'c++-mode-hook
|
(add-hook 'c++-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setq indent-tabs-mode t)
|
(setq indent-tabs-mode t)
|
||||||
(setq c-basic-offset 4)
|
(setq c-basic-offset 4)
|
||||||
(setq tab-width 4)))
|
(setq tab-width 4)))
|
||||||
|
|
||||||
;; This is my default indent.
|
;; This is my default indent.
|
||||||
;; After moving the cursor to line 2 I see that the relevant symbol is comment-intro.
|
;; After moving the cursor to line 2 I see that the relevant symbol is comment-intro.
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
;; ================
|
;; ================
|
||||||
(setq package-archives
|
(setq package-archives
|
||||||
'(("melpa" . "https://melpa.org/packages/")
|
'(("melpa" . "https://melpa.org/packages/")
|
||||||
;;("melpa-stable" . "https://stable.melpa.org/packages/")
|
;;("melpa-stable" . "https://stable.melpa.org/packages/")
|
||||||
("gnu" . "https://elpa.gnu.org/packages/")
|
("gnu" . "https://elpa.gnu.org/packages/")
|
||||||
("org" . "https://orgmode.org/elpa/")))
|
("org" . "https://orgmode.org/elpa/")))
|
||||||
|
|
||||||
|
@ -33,7 +33,9 @@
|
|||||||
;; Font theme (Monospace, or DejaVu Sans Mono if Monospace is not
|
;; Font theme (Monospace, or DejaVu Sans Mono if Monospace is not
|
||||||
;; present)
|
;; present)
|
||||||
(condition-case nil
|
(condition-case nil
|
||||||
(set-frame-font "Monospace-9")
|
(set-frame-font "Hack-9")
|
||||||
|
;; (set-frame-font "Monospace-9")
|
||||||
|
;; (set-frame-font "Anonymous Pro-10")
|
||||||
(error (set-frame-font "DejaVu Sans Mono-10")))
|
(error (set-frame-font "DejaVu Sans Mono-10")))
|
||||||
|
|
||||||
;;----------------------------------------------------------------------------
|
;;----------------------------------------------------------------------------
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
;; Python Mode
|
;; Python Mode
|
||||||
;;----------------------------------------------------------------------------
|
;;----------------------------------------------------------------------------
|
||||||
(add-hook 'python-mode-hook
|
(add-hook 'python-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setq indent-tabs-mode nil)
|
(setq indent-tabs-mode nil)
|
||||||
(setq python-indent-guess-indent-offset nil)
|
(setq python-indent-guess-indent-offset nil)
|
||||||
(setq python-indent-offset 4)))
|
(setq python-indent-offset 4)))
|
||||||
|
|
||||||
|
|
||||||
;;----------------------------------------------------------------------------
|
;;----------------------------------------------------------------------------
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
(defmacro after-load (feature &rest body)
|
(defmacro after-load (feature &rest body)
|
||||||
"After FEATURE is loaded, evaluate BODY."
|
"After FEATURE is loaded, evaluate BODY."
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
'(eval-after-load ,feature
|
'(eval-after-load, feature
|
||||||
'(progn ,@body))))
|
'(progn, @body))))
|
||||||
|
|
||||||
;; Elapsed time
|
;; Elapsed time
|
||||||
(myemacs/elapsed-time)
|
(myemacs/elapsed-time)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user