From 9d11a8bbdf57442098f180d69eb9cd28e57c9371 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 18 Oct 2019 22:35:36 +0700 Subject: Update 2019-10-18 --- emacs/.emacs.d/init.el | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 1b461b7..c7bc43d 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -24,12 +24,16 @@ '(ac-auto-start nil) '(ac-expand-on-auto-complete nil) '(ac-trigger-key "M-RET") + '(ansi-color-names-vector + ["#242424" "#e5786d" "#95e454" "#cae682" + "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"]) '(column-number-mode t) + '(custom-enabled-themes (quote (whiteboard))) '(erc-nick "cnx") '(package-selected-packages (quote - (glsl-mode perl6-mode fireplace lua-mode markdown-mode smart-tabs-mode - auctex wordnut magit geiser slime pdf-tools))) + (sane-term glsl-mode perl6-mode fireplace lua-mode markdown-mode + smart-tabs-mode auctex wordnut magit geiser slime pdf-tools))) '(safe-local-variable-values (quote ((Syntax . Common-Lisp)))) '(scroll-bar-mode nil) '(show-paren-mode t) @@ -42,7 +46,8 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(default ((t (:family "Latin Modern Mono" :foundry "UKWN" :slant normal :weight normal :height 120 :width normal)))) + '(default ((t (:family "Latin Modern Mono" :foundry "UKWN" + :slant normal :weight normal :height 120 :width normal)))) '(whitespace-space ((t (:foreground "gray"))))) (savehist-mode 1) @@ -57,8 +62,11 @@ (global-set-key (kbd "C-") #'cua-rectangle-mark-mode) (smart-tabs-insinuate 'c) -(setq c-default-style "linux") +(setq c-default-style '((c-mode-hook "linux") + (c++-mode-hook "gnu") + (java-mode-hook "gnu"))) (add-hook 'python-mode-hook (lambda () (setq comment-fill-column 72))) +(add-hook 'lua-mode-hook (lambda () (setq lua-indent-level 4))) (add-hook 'LaTeX-mode-hook 'prettify-symbols-mode) (add-hook 'pdf-tools-enabled-hook 'auto-revert-mode) -- cgit 1.4.1