summaryrefslogtreecommitdiffstats
path: root/files/.emacs.d/jd/jd-ui.el
diff options
context:
space:
mode:
Diffstat (limited to 'files/.emacs.d/jd/jd-ui.el')
-rwxr-xr-xfiles/.emacs.d/jd/jd-ui.el104
1 files changed, 104 insertions, 0 deletions
diff --git a/files/.emacs.d/jd/jd-ui.el b/files/.emacs.d/jd/jd-ui.el
new file mode 100755
index 0000000..4e388c9
--- /dev/null
+++ b/files/.emacs.d/jd/jd-ui.el
@@ -0,0 +1,104 @@
1;; Dotfiles --- Jakub Dlugosz emacs config
2;;; Commentary:
3
4;;; Code:
5
6(setq inhibit-startup-message t)
7(setq visible-bell t)
8(scroll-bar-mode -1)
9(tool-bar-mode -1)
10(tooltip-mode -1)
11(menu-bar-mode -1)
12(set-fringe-mode 10)
13
14;; (set-frame-parameter (selected-frame) 'alpha '(92 . 92))
15;; (add-to-list 'default-frame-alist '(alpha . (92 . 92)))
16
17(let ((height (if (string-equal (system-name)
18 "berserker")
19 175
20 125)))
21 (custom-set-faces
22 `(default ((t (:inherit nil :height ,height :family "Terminus"))))
23 `(line-number ((t (:inherit nil :height ,height :family "Terminus"))))
24 `(line-number-current-line ((t (:inherit nil :height ,height :family "Terminus"))))))
25
26(add-hook 'prog-mode-hook 'menu-bar--display-line-numbers-mode-relative)
27
28(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
29
30(global-prettify-symbols-mode 1)
31
32(defalias 'yes-or-no-p 'y-or-n-p)
33
34(require 'diminish)
35
36(use-package doom-modeline
37 :guix-package "emacs-doom-modeline"
38 :config
39 (doom-modeline-mode))
40
41(use-package solarized-theme
42 :guix-package "emacs-solarized-theme"
43 :config
44 (load-theme 'solarized-dark-high-contrast t))
45
46
47(use-package diminish
48 :guix-package "emacs-diminish")
49
50(use-package hl-todo
51 :guix-package "emacs-hl-todo"
52 :init
53 (setq hl-todo-keyword-faces
54 '(("TODO" . "#FF0000")
55 ("FIXME" . "#FF0000")
56 ("DEBUG" . "#A020F0")))
57 :config
58 (global-hl-todo-mode 1))
59
60(defvar jd/load-theme-hook nil)
61(defun jd/load-theme ()
62 (interactive)
63 (counsel-load-theme)
64 (run-hooks 'jd/load-theme-hook))
65
66(use-package ivy
67 :guix-package "emacs-ivy"
68 :diminish
69 :bind
70 (("C-s" . swiper))
71 :config
72 (ivy-mode 1))
73
74(use-package counsel
75 :guix-package "emacs-counsel"
76 :diminish t
77 :config
78 (counsel-mode 1))
79
80(use-package which-key
81 :guix-package "emacs-which-key"
82 :diminish
83 :config
84 (which-key-mode)
85 (setq which-key-idle-delay 0.3))
86
87(use-package all-the-icons
88 :guix-package "emacs-all-the-icons")
89
90(use-package beacon
91 :guix-package "emacs-beacon"
92 :config
93 (beacon-mode 1))
94
95(setq display-time-string-forms
96 '(" " 24-hours ":" minutes " "))
97
98(when jd/exwm-p
99 (display-battery-mode)
100 (display-time-mode))
101
102(provide 'jd-ui)
103
104;;; jd-ui.el ends here