|
|
|
|
@@ -21,7 +21,7 @@
|
|
|
|
|
;; See 'C-h v doom-font' for documentation and more examples of what they
|
|
|
|
|
;; accept. For example:
|
|
|
|
|
;;
|
|
|
|
|
;;(setq doom-font (font-spec :family "Fira Code" :size 12.5 :weight 'semi-light)
|
|
|
|
|
(setq doom-font (font-spec :family "Fira Code" :size 12.5 :weight 'semi-light))
|
|
|
|
|
;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
|
|
|
|
|
;;
|
|
|
|
|
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
|
|
|
|
@@ -36,7 +36,7 @@
|
|
|
|
|
|
|
|
|
|
;; 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'.
|
|
|
|
|
(setq display-line-numbers-type t)
|
|
|
|
|
(setq display-line-numbers-type 'relative)
|
|
|
|
|
|
|
|
|
|
;; If you use `org' and don't want your org files in the default location below,
|
|
|
|
|
;; change `org-directory'. It must be set before org loads!
|
|
|
|
|
@@ -76,7 +76,6 @@
|
|
|
|
|
;; they are implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(setq display-line-numbers-type 'relative)
|
|
|
|
|
;; org-roam
|
|
|
|
|
(use-package! org-roam
|
|
|
|
|
:custom
|
|
|
|
|
@@ -98,8 +97,9 @@
|
|
|
|
|
:target (file+head "%<%Y-%m-%d>.org"
|
|
|
|
|
"#+title: %<%Y-%m-%d>\n"))))
|
|
|
|
|
(org-roam-db-autosync-enable)
|
|
|
|
|
(require 'org-roam-dailies))
|
|
|
|
|
|
|
|
|
|
(require 'org-roam-dailies)
|
|
|
|
|
(require 'org-roam-graph)
|
|
|
|
|
(require 'org-roam-protocol))
|
|
|
|
|
|
|
|
|
|
(eval-after-load 'org-list
|
|
|
|
|
'(add-hook 'org-checkbox-statistics-hook (function ndk/checkbox-list-complete)))
|
|
|
|
|
@@ -122,8 +122,6 @@
|
|
|
|
|
(org-todo 'done)
|
|
|
|
|
(org-todo 'todo)))))))
|
|
|
|
|
|
|
|
|
|
;; font size
|
|
|
|
|
(set-face-attribute 'default nil :height 130)
|
|
|
|
|
;; ctrl+a and ctrl+x is awesome
|
|
|
|
|
(evil-define-key '(normal visual) 'global (kbd "C-a") 'evil-numbers/inc-at-pt)
|
|
|
|
|
(evil-define-key '(normal visual) 'global (kbd "C-x") 'evil-numbers/dec-at-pt)
|
|
|
|
|
@@ -135,6 +133,106 @@
|
|
|
|
|
#'evil-snipe-mode)
|
|
|
|
|
;; TABBSS
|
|
|
|
|
;; use tab indentation everywhere
|
|
|
|
|
(setq-default indent-tabs-mode 'only)
|
|
|
|
|
(setq-default indent-tabs-mode t)
|
|
|
|
|
(setq-default tab-width 4) ; Assuming you want your tabs to be four spaces wide
|
|
|
|
|
(defvaralias 'c-basic-offset 'tab-width)
|
|
|
|
|
|
|
|
|
|
;;Chezmoi
|
|
|
|
|
(use-package chezmoi)
|
|
|
|
|
|
|
|
|
|
;; Silly Latex
|
|
|
|
|
(setq-default org-latex-toc-command "\\tableofcontents \\clearpage")
|
|
|
|
|
|
|
|
|
|
;;org-caldav
|
|
|
|
|
(use-package! org-caldav
|
|
|
|
|
: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))
|
|
|
|
|
|
|
|
|
|
;; 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.")
|
|
|
|
|
(defun org-caldav-sync-with-delay (secs)
|
|
|
|
|
(when org-caldav-sync-timer
|
|
|
|
|
(cancel-timer org-caldav-sync-timer))
|
|
|
|
|
(setq org-caldav-sync-timer
|
|
|
|
|
(run-with-idle-timer
|
|
|
|
|
(* 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-calendars
|
|
|
|
|
'(
|
|
|
|
|
(:calendar-id "capture-1"
|
|
|
|
|
:files ("~/org/todo.org")
|
|
|
|
|
:inbox "~/org/todo.org")
|
|
|
|
|
(:calendar-id "poggers"
|
|
|
|
|
:files ("~/org/work.org")
|
|
|
|
|
:inbox "~/org/work.org")
|
|
|
|
|
(:calendar-id "home"
|
|
|
|
|
:files: ("~/org/home.org")
|
|
|
|
|
:inbox "~/org/home.org")
|
|
|
|
|
(:calendar-id "studies-1"
|
|
|
|
|
:files: ("~/org/studies.org")
|
|
|
|
|
:inbox "~/org/studies.org")
|
|
|
|
|
(:calendar-id "some-day-1"
|
|
|
|
|
:files: ("~/org/someday.org")
|
|
|
|
|
:inbox "~/org/someday.org")
|
|
|
|
|
))
|
|
|
|
|
(setq org-caldav-backup-file "~/org-caldav/org-caldav-backup.org")
|
|
|
|
|
(setq org-caldav-save-directory "~/org-caldav/")
|
|
|
|
|
(setq org-icalendar-categories '(local-tags))
|
|
|
|
|
|
|
|
|
|
:config
|
|
|
|
|
(setq org-icalendar-alarm-time 1)
|
|
|
|
|
;; This makes sure to-do items as a category can show up on the calendar
|
|
|
|
|
(setq org-icalendar-include-todo 'all)
|
|
|
|
|
(setq org-caldav-sync-todo t)
|
|
|
|
|
(setq org-caldav-delete-calendar-entries 'always)
|
|
|
|
|
(setq org-caldav-delete-org-entries 'always)
|
|
|
|
|
;; This ensures all org "deadlines" show up, and show up as due dates
|
|
|
|
|
(setq org-icalendar-use-deadline '(todo-due))
|
|
|
|
|
;; This ensures "scheduled" org items show up, and show up as start times
|
|
|
|
|
(setq org-icalendar-use-scheduled '(todo-start))
|
|
|
|
|
;; Add the delayed save hook with a five minute idle timer
|
|
|
|
|
(add-hook 'after-save-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(when (eq major-mode 'org-mode)
|
|
|
|
|
(org-caldav-sync-with-delay 300))))
|
|
|
|
|
;; Add the close emacs hook
|
|
|
|
|
(add-hook 'kill-emacs-hook 'org-caldav-sync-at-close))
|
|
|
|
|
(setq auth-sources '("~/.authinfo.gpg"))
|
|
|
|
|
|
|
|
|
|
;; 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))
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(setq-default cache-long-scans nil)
|
|
|
|
|
|