From 831b5da37edd9b846c56937ca873975c3f0f0294 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sun, 20 Nov 2022 21:53:01 +0100 Subject: Enable custom faces --- .emacs | 22 +++++++++++----------- .emacs.pure | 28 ++++++++++++++++------------ 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/.emacs b/.emacs index 40d868f..406a0fa 100644 --- a/.emacs +++ b/.emacs @@ -29,18 +29,18 @@ ;; 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. - ;; '(error ((nil (:foreground "Red1")))) - ;; '(font-lock-builtin-face ((nil (:foreground "dark slate blue")))) - ;; '(font-lock-comment-face ((nil (:foreground "Firebrick")))) + '(error ((nil (:foreground "Red1")))) + '(font-lock-builtin-face ((nil (:foreground "dark slate blue")))) + '(font-lock-comment-face ((nil (:foreground "Firebrick")))) '(font-lock-comment-face ((nil (:foreground "red")))) - ;; '(font-lock-constant-face ((nil (:foreground "dark cyan")))) - ;; '(font-lock-function-name-face ((nil (:foreground "Blue1")))) - ;; '(font-lock-keyword-face ((nil (:foreground "Purple")))) - ;; '(font-lock-string-face ((nil (:foreground "VioletRed4")))) - ;; '(font-lock-type-face ((nil (:foreground "ForestGreen")))) - ;; '(font-lock-variable-name-face ((nil (:foreground "sienna")))) - ;; '(font-lock-warning-face ((nil (:foreground "Red1")))) - ;; '(warning ((nil (:foreground "DarkOrange")))) + '(font-lock-constant-face ((nil (:foreground "dark cyan")))) + '(font-lock-function-name-face ((nil (:foreground "Blue1")))) + '(font-lock-keyword-face ((nil (:foreground "Purple")))) + '(font-lock-string-face ((nil (:foreground "VioletRed4")))) + '(font-lock-type-face ((nil (:foreground "ForestGreen")))) + '(font-lock-variable-name-face ((nil (:foreground "sienna")))) + '(font-lock-warning-face ((nil (:foreground "Red1")))) + '(warning ((nil (:foreground "DarkOrange")))) ) ;;(setq require-final-newline t) diff --git a/.emacs.pure b/.emacs.pure index 344771a..932b320 100644 --- a/.emacs.pure +++ b/.emacs.pure @@ -29,18 +29,18 @@ ;; 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. - ;; '(error ((nil (:foreground "Red1")))) - ;; '(font-lock-builtin-face ((nil (:foreground "dark slate blue")))) - ;; '(font-lock-comment-face ((nil (:foreground "Firebrick")))) + '(error ((nil (:foreground "Red1")))) + '(font-lock-builtin-face ((nil (:foreground "dark slate blue")))) + '(font-lock-comment-face ((nil (:foreground "Firebrick")))) '(font-lock-comment-face ((nil (:foreground "red")))) - ;; '(font-lock-constant-face ((nil (:foreground "dark cyan")))) - ;; '(font-lock-function-name-face ((nil (:foreground "Blue1")))) - ;; '(font-lock-keyword-face ((nil (:foreground "Purple")))) - ;; '(font-lock-string-face ((nil (:foreground "VioletRed4")))) - ;; '(font-lock-type-face ((nil (:foreground "ForestGreen")))) - ;; '(font-lock-variable-name-face ((nil (:foreground "sienna")))) - ;; '(font-lock-warning-face ((nil (:foreground "Red1")))) - ;; '(warning ((nil (:foreground "DarkOrange")))) + '(font-lock-constant-face ((nil (:foreground "dark cyan")))) + '(font-lock-function-name-face ((nil (:foreground "Blue1")))) + '(font-lock-keyword-face ((nil (:foreground "Purple")))) + '(font-lock-string-face ((nil (:foreground "VioletRed4")))) + '(font-lock-type-face ((nil (:foreground "ForestGreen")))) + '(font-lock-variable-name-face ((nil (:foreground "sienna")))) + '(font-lock-warning-face ((nil (:foreground "Red1")))) + '(warning ((nil (:foreground "DarkOrange")))) ) ;;(setq require-final-newline t) @@ -69,11 +69,15 @@ (put 'downcase-region 'disabled nil) (kill-buffer "*scratch*") +(setq split-height-threshold nil) +(setq split-width-threshold 160) + ;; Programming section ;; Indentation -(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) +(setq-default c-basic-offset 4 tab-width 4 js-indent-level 4 indent-tabs-mode nil sgml-basic-offset 4) +;;(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) ;;(setq-default c-basic-offset 4 tab-width 4) ;; Default coding style -- cgit v1.3