fix indent

This commit is contained in:
Jesús 2018-10-26 20:04:23 -05:00
parent 179372135d
commit 4a3d8a46f9
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
5 changed files with 14 additions and 12 deletions

View File

@ -2,10 +2,10 @@
;; c++ Mode
;;----------------------------------------------------------------------------
(add-hook 'c++-mode-hook
(lambda ()
(setq indent-tabs-mode t)
(setq c-basic-offset 4)
(setq tab-width 4)))
(lambda ()
(setq indent-tabs-mode t)
(setq c-basic-offset 4)
(setq tab-width 4)))
;; This is my default indent.
;; After moving the cursor to line 2 I see that the relevant symbol is comment-intro.

View File

@ -8,7 +8,7 @@
;; ================
(setq package-archives
'(("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/")
("org" . "https://orgmode.org/elpa/")))

View File

@ -33,7 +33,9 @@
;; Font theme (Monospace, or DejaVu Sans Mono if Monospace is not
;; present)
(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")))
;;----------------------------------------------------------------------------

View File

@ -2,10 +2,10 @@
;; Python Mode
;;----------------------------------------------------------------------------
(add-hook 'python-mode-hook
(lambda ()
(setq indent-tabs-mode nil)
(setq python-indent-guess-indent-offset nil)
(setq python-indent-offset 4)))
(lambda ()
(setq indent-tabs-mode nil)
(setq python-indent-guess-indent-offset nil)
(setq python-indent-offset 4)))
;;----------------------------------------------------------------------------

View File

@ -15,8 +15,8 @@
(defmacro after-load (feature &rest body)
"After FEATURE is loaded, evaluate BODY."
(declare (indent defun))
'(eval-after-load ,feature
'(progn ,@body))))
'(eval-after-load, feature
'(progn, @body))))
;; Elapsed time
(myemacs/elapsed-time)