mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 09:53:10 -05:00
Compare commits
No commits in common. "ff0e775e0d734d602a09e92ee8cb263e908d694d" and "b10d23a892641850044634ef03b3b3d32cc26c2a" have entirely different histories.
ff0e775e0d
...
b10d23a892
2 changed files with 21 additions and 29 deletions
|
@ -47,10 +47,10 @@
|
|||
|
||||
;; Restore `garbage-collect' and `file-name-handler-alist' settings
|
||||
(add-hook 'elpaca-after-init-hook
|
||||
(lambda ()
|
||||
(setq file-name-handler-alist default-file-name-handler-alist
|
||||
gc-cons-percentage 0.1
|
||||
gc-cons-threshold (* 1024 1024 8))))
|
||||
(lambda ()
|
||||
(setq file-name-handler-alist default-file-name-handler-alist
|
||||
gc-cons-percentage 0.1
|
||||
gc-cons-threshold (* 1024 1024 8))))
|
||||
|
||||
;; Relocate `emacs-user-directory' to XDG_DATA_HOME
|
||||
(setq user-emacs-directory
|
||||
|
@ -88,17 +88,12 @@
|
|||
;; Disable startup screen
|
||||
(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)
|
||||
|
||||
;; Visible bell in mode-line only
|
||||
(setq ring-bell-function
|
||||
(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))))
|
||||
;; Visible bell only
|
||||
(setq visible-bell t)
|
||||
|
||||
;; Fonts
|
||||
{{- if eq .chezmoi.hostname "helix" }}
|
||||
|
@ -107,21 +102,18 @@
|
|||
(set-face-font 'fixed-pitch "Hack-24")
|
||||
(set-face-font 'variable-pitch "DejaVu Sans-24")
|
||||
{{- else }}
|
||||
(push '(font . "Hack-11") default-frame-alist)
|
||||
(set-face-font 'default "Hack-11")
|
||||
(set-face-font 'fixed-pitch "Hack-11")
|
||||
(set-face-font 'variable-pitch "DejaVu Sans-11")
|
||||
(push '(font . "Hack-12") default-frame-alist)
|
||||
(set-face-font 'default "Hack-12")
|
||||
(set-face-font 'fixed-pitch "Hack-12")
|
||||
(set-face-font 'variable-pitch "DejaVu Sans-12")
|
||||
{{- end }}
|
||||
|
||||
;; Some GUI options
|
||||
(let ((options '((undecorated . t)
|
||||
(menu-bar-lines . 0)
|
||||
(tool-bar-lines . 0)
|
||||
(vertical-scroll-bars)
|
||||
(background-color . "#282828")
|
||||
(foreground-color . "#c6c6c6"))))
|
||||
(dolist (option options)
|
||||
(push option default-frame-alist)))
|
||||
(push '(menu-bar-lines . 0) default-frame-alist)
|
||||
(push '(tool-bar-lines . 0) default-frame-alist)
|
||||
(push '(vertical-scroll-bars) default-frame-alist)
|
||||
(push '(background-color . "#282828") default-frame-alist)
|
||||
(push '(foreground-color . "#c6c6c6") default-frame-alist)
|
||||
|
||||
;; Make lsp-mode use plists
|
||||
(setenv "LSP_USE_PLISTS" "true")
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
|
||||
("mt" "Todo"
|
||||
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)
|
||||
|
||||
("p" "Projects")
|
||||
|
@ -102,7 +102,7 @@
|
|||
|
||||
("pt" "Todo"
|
||||
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)
|
||||
|
||||
("w" "Work")
|
||||
|
@ -113,7 +113,7 @@
|
|||
|
||||
("wt" "Todo"
|
||||
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)))
|
||||
|
||||
;; Headline appearance
|
||||
|
@ -162,7 +162,7 @@
|
|||
;; (org-agenda-prefix-format " %-20:c%?-12t %s")
|
||||
(org-agenda-remove-tags t)
|
||||
(org-agenda-skip-function '(org-agenda-skip-entry-if
|
||||
'todo '("DONE" "WONT-DO")))
|
||||
'todo '("WONT-DO")))
|
||||
(org-agenda-span 5)))
|
||||
|
||||
(alltodo "" ((org-agenda-overriding-header "")
|
||||
|
|
Loading…
Reference in a new issue