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 ;; 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.

View File

@ -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/")))

View File

@ -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")))
;;---------------------------------------------------------------------------- ;;----------------------------------------------------------------------------

View File

@ -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)))
;;---------------------------------------------------------------------------- ;;----------------------------------------------------------------------------

View File

@ -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)