This commit is contained in:
2023-10-11 18:25:42 +03:00
parent dd2038ba11
commit 906a89e438
10 changed files with 132 additions and 49 deletions

View File

@@ -32,7 +32,7 @@
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme 'doom-gruvbox-light)
(setq doom-theme 'doom-gruvbox)
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
@@ -148,17 +148,17 @@
:init
;; This is the sync on close function; it also prompts for save after syncing so
;; no late changes get lost
(defun org-caldav-sync-at-close ()
(org-caldav-sync)
(save-some-buffers))
;; (defun org-caldav-sync-at-close ()
;; (org-caldav-sync)
;; (save-some-buffers))
;;
;; This is the delayed sync function; it waits until emacs has been idle for
;; "secs" seconds before syncing. The delay is important because the caldav-sync
;; can take five or ten seconds, which would be painful if it did that right at save.
;; This way it just waits until you've been idle for a while to avoid disturbing
;; the user.
(defvar org-caldav-sync-timer nil
"Timer that `org-caldav-push-timer' used to reschedule itself, or nil.")
;; "Timer that `org-caldav-push-timer' used to reschedule itself, or nil.")
(defun org-caldav-sync-with-delay (secs)
(when org-caldav-sync-timer
(cancel-timer org-caldav-sync-timer))
@@ -167,12 +167,12 @@
(* 1 secs) nil 'org-caldav-sync)))
;; Actual calendar configuration edit this to meet your specific needs
(setq org-caldav-url "https://nextcloud.sewelam.tech/remote.php/dav/calendars/Aly")
(setq org-caldav-url "http://132.145.236.249:48575/remote.php/dav/calendars/Aly")
(setq org-caldav-calendars
'(
(:calendar-id "capture-1"
:files ("~/org/todo.org")
:inbox "~/org/todo.org")
;; (:calendar-id "capture-1"
;; :files ("~/org/todo.org")
;; :inbox "~/org/todo.org")
(:calendar-id "poggers"
:files ("~/org/work.org")
:inbox "~/org/work.org")
@@ -212,27 +212,33 @@
;; MORE TEMPLATES
(after! org
(add-to-list 'org-capture-templates
'("w" "Work" entry
(file "~/org/work.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("t" "Personal todo" entry
(file "~/org/todo.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("l" "Someday" entry
(file "~/org/someday.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("s" "Studies" entry
(file "~/org/studies.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("h" "Home" entry
(file "~/org/home.org")
"* TODO %?" :empty-lines 1))
)
(add-to-list 'org-capture-templates
'("w" "Work" entry
(file "~/org/work.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("l" "Someday" entry
(file "~/org/someday.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("s" "Studies" entry
(file "~/org/studies.org")
"* TODO %?" :empty-lines 1))
(add-to-list 'org-capture-templates
'("h" "Home" entry
(file "~/org/home.org")
"* TODO %?" :empty-lines 1))
)
(setq-default cache-long-scans nil)
;; zsh pls
(setq explicit-shell-file-name "/usr/bin/zsh")
(setq shell-file-name "zsh")
(setq explicit-zsh-args '("--login" "--interactive"))
(defun zsh-shell-mode-setup ()
(setq-local comint-process-echoes t))
(add-hook 'shell-mode-hook #'zsh-shell-mode-setup)
(after! telega
(telega-notifications-mode 1))