Compare commits

..

No commits in common. "ff0e775e0d734d602a09e92ee8cb263e908d694d" and "b10d23a892641850044634ef03b3b3d32cc26c2a" have entirely different histories.

2 changed files with 21 additions and 29 deletions

View file

@ -47,10 +47,10 @@
;; Restore `garbage-collect' and `file-name-handler-alist' settings ;; Restore `garbage-collect' and `file-name-handler-alist' settings
(add-hook 'elpaca-after-init-hook (add-hook 'elpaca-after-init-hook
(lambda () (lambda ()
(setq file-name-handler-alist default-file-name-handler-alist (setq file-name-handler-alist default-file-name-handler-alist
gc-cons-percentage 0.1 gc-cons-percentage 0.1
gc-cons-threshold (* 1024 1024 8)))) gc-cons-threshold (* 1024 1024 8))))
;; Relocate `emacs-user-directory' to XDG_DATA_HOME ;; Relocate `emacs-user-directory' to XDG_DATA_HOME
(setq user-emacs-directory (setq user-emacs-directory
@ -88,17 +88,12 @@
;; Disable startup screen ;; Disable startup screen
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
;; Start in `fundamental-mode' to prevent loading of non-essential packages ;; Start in `fundamental-mode' instead of `lisp-interaction-mode' to avoid
;; loading unnecessary packages via hooks
(setq initial-major-mode 'fundamental-mode) (setq initial-major-mode 'fundamental-mode)
;; Visible bell in mode-line only ;; Visible bell only
(setq ring-bell-function (setq visible-bell t)
(lambda ()
(let ((orig_fg (face-foreground 'mode-line)))
(set-face-foreground 'mode-line "#F2804F")
(run-with-idle-timer 0.1 nil
(lambda (fg) (set-face-foreground 'mode-line fg))
orig_fg))))
;; Fonts ;; Fonts
{{- if eq .chezmoi.hostname "helix" }} {{- if eq .chezmoi.hostname "helix" }}
@ -107,21 +102,18 @@
(set-face-font 'fixed-pitch "Hack-24") (set-face-font 'fixed-pitch "Hack-24")
(set-face-font 'variable-pitch "DejaVu Sans-24") (set-face-font 'variable-pitch "DejaVu Sans-24")
{{- else }} {{- else }}
(push '(font . "Hack-11") default-frame-alist) (push '(font . "Hack-12") default-frame-alist)
(set-face-font 'default "Hack-11") (set-face-font 'default "Hack-12")
(set-face-font 'fixed-pitch "Hack-11") (set-face-font 'fixed-pitch "Hack-12")
(set-face-font 'variable-pitch "DejaVu Sans-11") (set-face-font 'variable-pitch "DejaVu Sans-12")
{{- end }} {{- end }}
;; Some GUI options ;; Some GUI options
(let ((options '((undecorated . t) (push '(menu-bar-lines . 0) default-frame-alist)
(menu-bar-lines . 0) (push '(tool-bar-lines . 0) default-frame-alist)
(tool-bar-lines . 0) (push '(vertical-scroll-bars) default-frame-alist)
(vertical-scroll-bars) (push '(background-color . "#282828") default-frame-alist)
(background-color . "#282828") (push '(foreground-color . "#c6c6c6") default-frame-alist)
(foreground-color . "#c6c6c6"))))
(dolist (option options)
(push option default-frame-alist)))
;; Make lsp-mode use plists ;; Make lsp-mode use plists
(setenv "LSP_USE_PLISTS" "true") (setenv "LSP_USE_PLISTS" "true")

View file

@ -91,7 +91,7 @@
("mt" "Todo" ("mt" "Todo"
entry (file+headline ,(concat org-directory "/inbox.org") "You can do it!") entry (file+headline ,(concat org-directory "/inbox.org") "You can do it!")
"** TODO [#B] %?\n:CREATED: %U\n " "** TODO [#B] %?\n:Created: %U\n "
:empty-lines 1) :empty-lines 1)
("p" "Projects") ("p" "Projects")
@ -102,7 +102,7 @@
("pt" "Todo" ("pt" "Todo"
entry (file+headline ,(concat org-directory "/inbox.org") "Project Tasks") entry (file+headline ,(concat org-directory "/inbox.org") "Project Tasks")
"** TODO [#B] %?\n:CREATED: %U\n%i\n%a\nNotes: " "** TODO [#B] %?\n:Created: %U\n%i\n%a\nNotes: "
:empty-lines 1) :empty-lines 1)
("w" "Work") ("w" "Work")
@ -113,7 +113,7 @@
("wt" "Todo" ("wt" "Todo"
entry (file+headline ,(concat org-directory "/inbox.org") "Work Tasks") entry (file+headline ,(concat org-directory "/inbox.org") "Work Tasks")
"** TODO [#B] %?\n:CREATED: %U\n%i\n%a\nNotes: " "** TODO [#B] %?\n:Created: %U\n%i\n%a\nNotes: "
:empty-lines 1))) :empty-lines 1)))
;; Headline appearance ;; Headline appearance
@ -162,7 +162,7 @@
;; (org-agenda-prefix-format " %-20:c%?-12t %s") ;; (org-agenda-prefix-format " %-20:c%?-12t %s")
(org-agenda-remove-tags t) (org-agenda-remove-tags t)
(org-agenda-skip-function '(org-agenda-skip-entry-if (org-agenda-skip-function '(org-agenda-skip-entry-if
'todo '("DONE" "WONT-DO"))) 'todo '("WONT-DO")))
(org-agenda-span 5))) (org-agenda-span 5)))
(alltodo "" ((org-agenda-overriding-header "") (alltodo "" ((org-agenda-overriding-header "")