Create base of custom theme
This commit is contained in:
parent
6aca955b8e
commit
9d92b4f058
2 changed files with 120 additions and 4 deletions
39
init.el
39
init.el
|
@ -1,8 +1,5 @@
|
|||
;;;; Appearance
|
||||
|
||||
;; Set theme
|
||||
(load-theme 'tango-dark)
|
||||
|
||||
;; Hide ribbon, menu bar, and scroll bars
|
||||
(menu-bar-mode -1)
|
||||
(tool-bar-mode -1)
|
||||
|
@ -15,7 +12,7 @@
|
|||
(global-display-line-numbers-mode +1)
|
||||
|
||||
;; Highlight current line
|
||||
;;(global-hl-line-mode 1) -- disabled until less nasty theme
|
||||
(global-hl-line-mode 1)
|
||||
|
||||
;; Replace yes/no prompts with y/n prompts
|
||||
(fset #'yes-or-no-p #'y-or-n-p)
|
||||
|
@ -26,6 +23,20 @@
|
|||
mouse-wheel-follow-mouse +1
|
||||
scroll-step 1) ;; C-n C-p scroll step
|
||||
|
||||
;;;; Tabs
|
||||
(setq custom-tab-width 2)
|
||||
|
||||
(defun disable-tabs ()
|
||||
(indent-tabs-mode -1))
|
||||
(defun enable-tabs ()
|
||||
(local-set-key (kbd "TAB") 'tab-to-tab-stop)
|
||||
(indent-tabs-mode +1)
|
||||
(setq tab-width custom-tab-width))
|
||||
|
||||
(add-hook 'prog-mode-hook 'enable-tabs)
|
||||
(add-hook 'lisp-mode-hook 'disable-tabs)
|
||||
(add-hook 'emacs-lisp-mode-hook 'disable-tabs)
|
||||
|
||||
;;;; Packages (straight.el)
|
||||
|
||||
(defvar bootstrap-version)
|
||||
|
@ -53,3 +64,23 @@
|
|||
|
||||
;; Magit (git frontend)
|
||||
(use-package magit)
|
||||
|
||||
;; Rainbow-Mode (show hex strings in color)
|
||||
(use-package rainbow-mode)
|
||||
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; 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.
|
||||
'(custom-safe-themes
|
||||
'("5abd9e0076c5e1a0c81d963040b81fb58b986006c2b0c472b0afb985fe704b87" default)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; 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.
|
||||
)
|
||||
|
||||
;; Set theme
|
||||
(load-theme 'my-theme)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue