/
init-theme.el
76 lines (64 loc) · 1.87 KB
/
init-theme.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
;;; init-theme.el --- Theming related config -*- lexical-binding: t; -*-
;;
;; Author: Kiran Shenoy
;; URL: https://github.com/kgs1992/.emacs.d/
;;
;;; Commentary:
;;
;; This package contains all of the theme related config.
;;
;;;
;;; Code:
;; Doom themes
(use-package doom-themes
:ensure t
:commands (apply-my-theme-to-frame)
:defer t
:config
;; Apply theme and custom faces
(defun apply-my-theme()
"Apply my Emacs theme config."
;; Disable Menubars and Toolbars
(menu-bar-mode -1)
(tool-bar-mode -1)
(toggle-scroll-bar -1)
;; Highlisht current line
(global-hl-line-mode t)
;; Bar cursor
(setq-default cursor-type '(bar . 2))
;; Syntax highlighting
(global-font-lock-mode 1)
(setq font-lock-maximum-decoration t)
;; Global settings (defaults)
(setq doom-themes-enable-bold t
doom-themes-enable-italic t)
;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)
;; treemacs theme
(doom-themes-treemacs-config)
;; org theme
(doom-themes-org-config)
;; Load the theme (doom-one, doom-molokai, etc); keep in mind that each theme
;; may have their own settings.
(load-theme 'doom-vibrant t)
;; Misc colours
(set-face-attribute 'region nil
:background "#21242b"
:foreground "black")
(set-face-background 'hl-line "#21242b"))
(if (daemonp)
(add-hook 'after-make-frame-functions
(lambda (frame)
(with-selected-frame frame
(apply-my-theme)))))
:hook (after-init . apply-my-theme))
(use-package fira-code-mode
:load-path "local-packages"
:defer t
:commands (fira-code-mode)
:config
(setq fira-code-mode--only-ligatures t)
:hook (prog-mode . fira-code-mode))
(message "Loaded init-theme.el")
(provide 'init-theme)
;;; init-theme.el ends here