mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-21 16:11:26 +00:00
huge update
This commit is contained in:
parent
f9837330be
commit
9d31d48b34
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -26,3 +26,5 @@ home/pure_emacs/.emacs.d/eln-cache/
|
||||||
home/pure_emacs/.emacs.d/straight/
|
home/pure_emacs/.emacs.d/straight/
|
||||||
home/pure_emacs/.emacs.d/private/
|
home/pure_emacs/.emacs.d/private/
|
||||||
home/pure_emacs/.emacs.d/private/*
|
home/pure_emacs/.emacs.d/private/*
|
||||||
|
home/emacs/.emacs.d/ltximg/
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
# by DPI and the specified value is always added at both opposing sides.
|
# by DPI and the specified value is always added at both opposing sides.
|
||||||
padding:
|
padding:
|
||||||
x: 40
|
x: 40
|
||||||
y: 20
|
y: 40
|
||||||
|
|
||||||
# Spread additional padding evenly around the terminal content.
|
# Spread additional padding evenly around the terminal content.
|
||||||
#dynamic_padding: false
|
#dynamic_padding: false
|
||||||
|
@ -87,7 +87,7 @@ padding:
|
||||||
|
|
||||||
# Font configuration
|
# Font configuration
|
||||||
font:
|
font:
|
||||||
size: 10
|
size: 9
|
||||||
normal:
|
normal:
|
||||||
family: Mononoki Nerd Font
|
family: Mononoki Nerd Font
|
||||||
style: Medium
|
style: Medium
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
~C-z~ to toggle vim/emacs mode
|
~C-z~ to toggle vim/emacs mode
|
||||||
~M-p~ in Counsel to get previos seach
|
~M-p~ in Counsel to get previos seach
|
||||||
~C-x RET C-\~ - set input method (Tex for *LaTex*)
|
~C-x RET C-\~ - set input method (Tex for *LaTex*)
|
||||||
|
~C-x n s~ - Open subtree
|
||||||
|
~org-tree-to-indirect-buffer~ Open subtree in separate buffer
|
||||||
* Initial
|
* Initial
|
||||||
** Straight.el
|
** Straight.el
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -95,13 +96,34 @@
|
||||||
|
|
||||||
*** Disbling line numbers
|
*** Disbling line numbers
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(column-number-mode)
|
;(column-number-mode)
|
||||||
(global-display-line-numbers-mode)
|
(global-display-line-numbers-mode 0)
|
||||||
(dolist (mode '(org-mode-hook
|
(dolist (mode '(org-mode-hook
|
||||||
term-mode-hook
|
term-mode-hook
|
||||||
shell-mode-hook
|
shell-mode-hook
|
||||||
|
telega-root-mode-hook
|
||||||
|
telega-chat-mode-hook
|
||||||
|
doc-view-mode-hook
|
||||||
|
pdf-mode-hook
|
||||||
|
eww-mode-hook
|
||||||
eshell-mode-hook))
|
eshell-mode-hook))
|
||||||
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(add-hook 'shell-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'telega-root-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'help-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'telega-chat-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'telega-image-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'telega-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'doc-view-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'pdf-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'eww-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Rainbow Brakets
|
*** Rainbow Brakets
|
||||||
|
@ -186,8 +208,47 @@
|
||||||
;; Fallback for emojies
|
;; Fallback for emojies
|
||||||
|
|
||||||
#+end_src emacs-lisp
|
#+end_src emacs-lisp
|
||||||
* Keybindigs
|
*** Font for text-mode
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
(use-package mixed-pitch
|
||||||
|
:straight t
|
||||||
|
:hook
|
||||||
|
(text-mode . mixed-pitch-mode)
|
||||||
|
:config
|
||||||
|
(set-face-attribute 'default nil :font "Mononoki Nerd Font" :height 130)
|
||||||
|
(set-face-attribute 'fixed-pitch nil :font "Mononoki Nerd Font")
|
||||||
|
(set-face-attribute 'variable-pitch nil :font "FiraSans"))
|
||||||
|
#+end_src
|
||||||
|
* Keybindigs
|
||||||
|
** Defining smth
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(defun opt ()
|
||||||
|
"open tasks"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/GTD/tasks.org"))
|
||||||
|
(defun opi ()
|
||||||
|
"open inbox"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/GTD/inbox.org"))
|
||||||
|
(defun opd ()
|
||||||
|
"open daily"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/GTD/daily.org"))
|
||||||
|
(defun opr ()
|
||||||
|
"open readlist"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/GTD/readlist.org"))
|
||||||
|
(defun opc ()
|
||||||
|
"open readlist"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/.emacs.d/config.org"))
|
||||||
|
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
** Basic
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
|
|
||||||
(use-package general
|
(use-package general
|
||||||
:straight t
|
:straight t
|
||||||
:config
|
:config
|
||||||
|
@ -201,8 +262,16 @@
|
||||||
"/" 'swiper
|
"/" 'swiper
|
||||||
"b" 'counsel-switch-buffer
|
"b" 'counsel-switch-buffer
|
||||||
|
|
||||||
"f r" 'counsel-recentf
|
"f r" '(counsel-recentf :which-key "recent files")
|
||||||
"f f" 'counsel-find-file
|
"f f" '(counsel-find-file :which-key "find files")
|
||||||
|
"f c" '(opc :which-key "open config")
|
||||||
|
|
||||||
|
|
||||||
|
"t t" '(opt :which-key "✅Tasks")
|
||||||
|
"t i" '(opi :which-key "📥Inbox")
|
||||||
|
"t d" '(opd :which-key "🌄Daily")
|
||||||
|
"t r" '(opr :which-key "📚Readlist")
|
||||||
|
|
||||||
"SPC" 'counsel-M-x
|
"SPC" 'counsel-M-x
|
||||||
|
|
||||||
"a" 'org-agenda
|
"a" 'org-agenda
|
||||||
|
@ -214,97 +283,130 @@
|
||||||
(general-create-definer my-leader-def
|
(general-create-definer my-leader-def
|
||||||
:states 'motion
|
:states 'motion
|
||||||
:prefix "SPC")
|
:prefix "SPC")
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Org mode setup
|
* Org mode setup
|
||||||
** Basic
|
** Basic
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun my/org-mode-setup()
|
(defun my/org-mode-setup()
|
||||||
(auto-fill-mode 0)
|
(auto-fill-mode 0)
|
||||||
(visual-line-mode 1)
|
(visual-line-mode 1)
|
||||||
(setq evil-auto-indent 1)
|
(setq evil-auto-indent 1)
|
||||||
(variable-pitch-mode t)
|
(variable-pitch-mode t)
|
||||||
(prettify-symbols-mode +1)
|
(prettify-symbols-mode +1)
|
||||||
(display-line-numbers-mode 0)
|
(display-line-numbers-mode 0)
|
||||||
|
)
|
||||||
|
|
||||||
|
(use-package org
|
||||||
|
:straight t
|
||||||
|
|
||||||
|
:hook ((org-mode . my/org-mode-setup)
|
||||||
|
(org-mode . variable-pitch-mode)
|
||||||
|
(org-mode . org-indent-mode)
|
||||||
|
(org-mode . prettify-symbols-mode)
|
||||||
|
)
|
||||||
|
:config
|
||||||
|
(require 'org-habit)
|
||||||
|
(add-to-list 'org-modules 'org-habit)
|
||||||
|
(setq org-habit-graph-column 60)
|
||||||
|
(setq org-treat-insert-todo-heading-as-state-change t)
|
||||||
|
(setq org-agenda-start-with-log-mode t)
|
||||||
|
(setq org-log-done 'time)
|
||||||
|
(setq org-log-into-drawer t)
|
||||||
|
|
||||||
|
|
||||||
|
;; Make sure org-indent face is available
|
||||||
|
;; Increase the size of various headings
|
||||||
|
|
||||||
|
|
||||||
|
(add-hook 'org-agenda-finalize-hook #'hl-line-mode)
|
||||||
|
|
||||||
|
(set-face-attribute 'org-document-title nil :font "FiraSans" :weight 'bold :height 1.3)
|
||||||
|
|
||||||
|
(dolist (face '((org-level-1 . 1.2)
|
||||||
|
(org-level-2 . 1.1)
|
||||||
|
(org-level-3 . 1.0)
|
||||||
|
(org-level-4 . 1.0)
|
||||||
|
(org-level-5 . 1.0)
|
||||||
|
(org-level-6 . 1.0)
|
||||||
|
(org-level-7 . 1.0)
|
||||||
|
(org-level-8 . 1.0)))
|
||||||
|
(set-face-attribute (car face) nil :font "FiraSans" :weight 'bold :height (cdr face)))
|
||||||
|
|
||||||
|
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
||||||
|
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
||||||
|
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
|
||||||
|
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
|
||||||
|
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
||||||
|
;(set-face-attribute 'org-indent nil :inherit '(org-hide fixed-pitch))
|
||||||
|
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
||||||
|
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||||
|
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||||
|
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
|
||||||
|
|
||||||
|
(setq org-agenda-files
|
||||||
|
'(
|
||||||
|
"~/GTD/habits.org"
|
||||||
|
"~/GTD/daily.org"
|
||||||
|
"~/GTD/tasks.org"
|
||||||
|
"~/GTD/inbox.org"
|
||||||
|
"~/GTD/watchlist.org"
|
||||||
|
"~/GTD/readlist.org"
|
||||||
|
))
|
||||||
|
(setq org-image-actual-width (list 550))
|
||||||
|
;; Get rid of the background on column views
|
||||||
|
(set-face-attribute 'org-column nil :background nil)
|
||||||
|
(set-face-attribute 'org-column-title nil :background nil)
|
||||||
|
(setq org-src-fontify-natively t)
|
||||||
|
(setq org-agenda-start-with-log-mode t)
|
||||||
|
(setq org-log-done 'time)
|
||||||
|
(setq org-log-into-drawer t)
|
||||||
|
(setq org-todo-keyword-faces '(("TODO" . org-warning)
|
||||||
|
("STARTED" . "yellow")
|
||||||
|
("DREAM" . "pink")
|
||||||
|
("PJ" . "pink")
|
||||||
|
("IDEA" . "gold")
|
||||||
|
("READ" . "violet")
|
||||||
|
("NEXT" . "red")
|
||||||
|
("ARTICLE" . "lightblue")
|
||||||
|
("CANCELED" .
|
||||||
|
(:foreground "blue"
|
||||||
|
:weight bold))))
|
||||||
|
|
||||||
|
(setq org-todo-keywords '((sequence "INBOX(i)" "PJ(p)" "TODO(t)" "NEXT(n)" "CAL(c)" "WAIT(w@/!)" "|" "DONE(d!)" "CANC(k@)")
|
||||||
|
(sequence "IDEA(I)" "DREAM(D)" "READ(R)" "|" "DONE(d!)" "CANC(k@)")
|
||||||
|
))
|
||||||
|
(setq org-agenda-custom-commands org-agenda-settings)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
(defun org-habit-streak-count ()
|
||||||
|
(point-min)
|
||||||
|
(while (not (eobp))
|
||||||
|
(when (get-text-property (point) 'org-habit-p)
|
||||||
|
(let ((count (count-matches
|
||||||
|
(char-to-string org-habit-completed-glyph)
|
||||||
|
(line-beginning-position) (line-end-position))))
|
||||||
|
(end-of-line)
|
||||||
|
(insert (number-to-string count))))
|
||||||
|
(forward-line 1)))
|
||||||
|
(add-hook 'org-agenda-finalize-hook 'org-habit-streak-count)
|
||||||
|
|
||||||
|
(use-package org-bullets
|
||||||
|
:after (org)
|
||||||
|
:hook (
|
||||||
|
(org-mode . org-bullets-mode )
|
||||||
|
(org-mode . org-indent-mode )
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package org
|
|
||||||
:straight t
|
|
||||||
|
|
||||||
:hook ((org-mode . my/org-mode-setup)
|
|
||||||
(org-mode . variable-pitch-mode)
|
|
||||||
(org-mode . org-indent-mode)
|
|
||||||
(org-mode . prettify-symbols-mode)
|
|
||||||
)
|
|
||||||
:config
|
|
||||||
;; Make sure org-indent face is available
|
|
||||||
;; Increase the size of various headings
|
|
||||||
(set-face-attribute 'org-document-title nil :font "Vollkorn" :weight 'bold :height 1.3)
|
|
||||||
|
|
||||||
(dolist (face '((org-level-1 . 1.2)
|
|
||||||
(org-level-2 . 1.1)
|
|
||||||
(org-level-3 . 1.0)
|
|
||||||
(org-level-4 . 1.0)
|
|
||||||
(org-level-5 . 1.0)
|
|
||||||
(org-level-6 . 1.0)
|
|
||||||
(org-level-7 . 1.0)
|
|
||||||
(org-level-8 . 1.0)))
|
|
||||||
(set-face-attribute (car face) nil :font "Vollkorn" :weight 'bold :height (cdr face)))
|
|
||||||
|
|
||||||
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
|
||||||
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
|
||||||
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
|
|
||||||
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
|
|
||||||
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
|
||||||
;(set-face-attribute 'org-indent nil :inherit '(org-hide fixed-pitch))
|
|
||||||
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
|
||||||
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
|
||||||
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
|
||||||
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
|
|
||||||
|
|
||||||
(setq org-agenda-files `("~/GTD"))
|
|
||||||
(setq org-image-actual-width (list 550))
|
|
||||||
;; Get rid of the background on column views
|
|
||||||
(set-face-attribute 'org-column nil :background nil)
|
|
||||||
(set-face-attribute 'org-column-title nil :background nil)
|
|
||||||
(setq org-src-fontify-natively t)
|
|
||||||
(setq org-agenda-start-with-log-mode t)
|
|
||||||
(setq org-log-done 'time)
|
|
||||||
(setq org-log-into-drawer t)
|
|
||||||
(setq org-todo-keyword-faces '(("TODO" . org-warning)
|
|
||||||
("STARTED" . "yellow")
|
|
||||||
("DREAM" . "pink")
|
|
||||||
("PJ" . "pink")
|
|
||||||
("IDEA" . "gold")
|
|
||||||
("READ" . "violet")
|
|
||||||
("NEXT" . "red")
|
|
||||||
("ARTICLE" . "lightblue")
|
|
||||||
("CANCELED" .
|
|
||||||
(:foreground "blue"
|
|
||||||
:weight bold))))
|
|
||||||
|
|
||||||
(setq org-todo-keywords '((sequence "INBOX(i)" "PJ(p)" "TODO(t)" "NEXT(n)" "CAL(c)" "WAIT(w@/!)" "|" "DONE(d!)" "CANC(k@)")
|
|
||||||
))
|
|
||||||
(setq org-agenda-custom-commands org-agenda-settings)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
(use-package org-bullets
|
|
||||||
:after (org)
|
|
||||||
:hook (
|
|
||||||
(org-mode . org-bullets-mode )
|
|
||||||
(org-mode . org-indent-mode )
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
(require 'general)
|
||||||
)
|
(evil-define-key 'normal org-mode-map (kbd "<tab>") #'org-cycle)
|
||||||
(require 'general)
|
(general-def org-mode-map
|
||||||
(evil-define-key 'normal org-mode-map (kbd "<tab>") #'org-cycle)
|
"TAB" 'org-cycle
|
||||||
(general-def org-mode-map
|
)
|
||||||
"TAB" 'org-cycle
|
|
||||||
)
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org Fonts
|
** Org Fonts
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -314,54 +416,88 @@
|
||||||
#+end_src emacs-lisp
|
#+end_src emacs-lisp
|
||||||
*** Org agenda commands
|
*** Org agenda commands
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq org-agenda-settings '(
|
(defun air-org-skip-subtree-if-priority (priority)
|
||||||
("d" "Dashboard 📜"
|
"Skip an agenda subtree if it has a priority of PRIORITY.
|
||||||
(
|
|
||||||
(agenda "" ((org-deadline-warning-days 14)))
|
PRIORITY may be one of the characters ?A, ?B, or ?C."
|
||||||
(tags "@morning" ((org-agenda-overriding-header "Eat the Frog 🐸")))
|
(let ((subtree-end (save-excursion (org-end-of-subtree t)))
|
||||||
(tags "today" ((org-agenda-overriding-header "Today Tasks 🌅")))
|
(pri-value (* 1000 (- org-lowest-priority priority)))
|
||||||
(todo "NEXT" ((org-agenda-overriding-header "Next Tasks ⏩")))
|
(pri-current (org-get-priority (thing-at-point 'line t))))
|
||||||
(todo "WAIT" ((org-agenda-overriding-header "Waiting tasks ⏰")))
|
(if (= pri-value pri-current)
|
||||||
(todo "PJ" ((org-agenda-overriding-header "Active Projects ")))
|
subtree-end
|
||||||
(todo "INBOX" ((org-agenda-overriding-header "Inbox 📥")))
|
nil)))
|
||||||
))
|
(defun air-org-skip-subtree-if-habit ()
|
||||||
|
"Skip an agenda entry if it has a STYLE property equal to \"habit\"."
|
||||||
|
(let ((subtree-end (save-excursion (org-end-of-subtree t))))
|
||||||
|
(if (string= (org-entry-get nil "STYLE") "habit")
|
||||||
|
subtree-end
|
||||||
|
nil)))
|
||||||
|
(setq org-agenda-settings '(
|
||||||
|
("D" "Daily agenda and all TODOs"
|
||||||
|
((tags "PRIORITY=\"A\""
|
||||||
|
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
|
||||||
|
(org-agenda-overriding-header "High-priority unfinished tasks:")))
|
||||||
|
(agenda "" ((org-agenda-ndays 1)))
|
||||||
|
(alltodo ""
|
||||||
|
((org-agenda-skip-function '(or (air-org-skip-subtree-if-habit)
|
||||||
|
(air-org-skip-subtree-if-priority ?A)
|
||||||
|
(org-agenda-skip-if nil '(scheduled deadline))))
|
||||||
|
(org-agenda-overriding-header "ALL normal priority tasks:"))))
|
||||||
|
((org-agenda-compact-blocks t)))
|
||||||
|
("d" "Dashboard 📜"
|
||||||
|
(
|
||||||
|
(agenda "" ((org-deadline-warning-days 14)))
|
||||||
|
(tags "@morning" ((org-agenda-overriding-header "Eat the Frog 🐸")))
|
||||||
|
(tags "today/NEXT" ((org-agenda-overriding-header "Today Tasks 🌅")))
|
||||||
|
(todo "NEXT" ((org-agenda-overriding-header "Next Tasks ⏩")))
|
||||||
|
(todo "WAIT" ((org-agenda-overriding-header "Waiting tasks ⏰")))
|
||||||
|
(todo "PJ" ((org-agenda-overriding-header "Active Projects ")))
|
||||||
|
(todo "INBOX" ((org-agenda-overriding-header "Inbox 📥")))
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
("w" "Wait Tasks ⏰"
|
("w" "Wait Tasks ⏰"
|
||||||
(todo "WAIT" ((org-agenda-overriding-header "Wait Tasks")))
|
(todo "WAIT" ((org-agenda-overriding-header "Wait Tasks")))
|
||||||
(todo "NEXT" ((org-agenda-overriding-header "Wait Tasks")))
|
(todo "NEXT" ((org-agenda-overriding-header "Wait Tasks")))
|
||||||
|
)
|
||||||
|
("c" "Dated Tasks 📅" ((todo "CAL" ((org-agenda-overriding-header "Dated Tasks")))))
|
||||||
|
|
||||||
|
("S" "Somewhen ⌛" ((todo "TODO" ((org-agenda-overriding-header "Somewhen ")))))
|
||||||
|
("R" "Read list 📚" tags-todo "+readlist")
|
||||||
|
("W" "Watch list 🎦" tags-todo "+watchlist")
|
||||||
|
("I" "Ideas 💡" tags-todo "+idea")
|
||||||
|
("P" "petprojects 🐕" tags-todo "+petproject")
|
||||||
|
("B" "Things to buy 🛍" tags-todo "+shoplist")
|
||||||
|
("sd" "Do Today 🌄" tags-todo "+today/NEXT" ((org-agenda-overriding-header "Today 🌄")))
|
||||||
|
|
||||||
|
;; My state/contexts
|
||||||
|
("s" . "My State and contexts")
|
||||||
|
("st" "Tired 🥱" tags-todo "+@tired/NEXT" ((org-agenda-overriding-header "Tired 🥱")))
|
||||||
|
("sh" "At home🏠" tags-todo "+@home/NEXT" ((org-agenda-overriding-header "At home🏠")))
|
||||||
|
("sc" "By a computer 💻" tags-todo "+@computer/NEXT" ((org-agenda-overriding-header "By a computer 💻")))
|
||||||
|
("ss" "On studies 🏫" tags-todo "+@uni/NEXT" ((org-agenda-overriding-header "On studies 🏫")))
|
||||||
|
("ss" "In Kwork 🧑 🛋️ " tags-todo "+@kwork/NEXT" ((org-agenda-overriding-header "In Kwork 🧑💻 🛋️ ")))
|
||||||
|
("so" "Online 🌐" tags-todo "+@online/NEXT" ((org-agenda-overriding-header "Online 🌐")))
|
||||||
|
("sO" "Outdoors🚶" tags-todo "+@outdoors/NEXT" ((org-agenda-overriding-header "Outdoors🚶")))
|
||||||
|
("sT" "To takeaway 👝 " tags-todo "+takeaway" ((org-agenda-overriding-header "To takeaway 👝 ")))
|
||||||
|
|
||||||
|
("F" "FROGS!" tags-todo "quack" ((org-agenda-overriding-header "🐸🐸🐸🐸🐸🐸")))
|
||||||
|
("h" "💪 Daily habits 💪"
|
||||||
|
((agenda ""))
|
||||||
|
((org-agenda-show-log t)
|
||||||
|
(org-agenda-ndays 3)
|
||||||
|
(org-agenda-log-mode-items '(state))
|
||||||
|
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp "Habit")))
|
||||||
|
)
|
||||||
|
|
||||||
|
("H" "💪Habits!💪🏻 " tags-todo "+Habit" ((org-agenda-overriding-header "Habits 💪")))
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
;; other commands here
|
||||||
|
|
||||||
)
|
)
|
||||||
("c" "Dated Tasks 📅" ((todo "CAL" ((org-agenda-overriding-header "Dated Tasks")))))
|
|
||||||
|
|
||||||
("S" "Somewhen ⌛" ((todo "TODO" ((org-agenda-overriding-header "Somewhen ")))))
|
|
||||||
("R" "Read list 📚" tags-todo "+readlist")
|
|
||||||
("W" "Watch list 🎦" tags-todo "+watchlist")
|
|
||||||
("I" "Ideas 💡" tags-todo "+idea")
|
|
||||||
("P" "petprojects 🐕" tags-todo "+petproject")
|
|
||||||
("B" "Things to buy 🛍" tags-todo "+shoplist")
|
|
||||||
|
|
||||||
;; My state/contexts
|
|
||||||
("s" . "My State and contexts")
|
|
||||||
("st" "Tired 🥱" tags-todo "+@tired/NEXT" ((org-agenda-overriding-header "Tired 🥱")))
|
|
||||||
("sh" "At home🏠" tags-todo "+@home/NEXT" ((org-agenda-overriding-header "At home🏠")))
|
|
||||||
("sc" "By a computer 💻" tags-todo "+@computer/NEXT" ((org-agenda-overriding-header "By a computer 💻")))
|
|
||||||
("ss" "On studies 🏫" tags-todo "+@uni/NEXT" ((org-agenda-overriding-header "On studies 🏫")))
|
|
||||||
("so" "Online 🌐" tags-todo "+@online/NEXT" ((org-agenda-overriding-header "Online 🌐")))
|
|
||||||
("st" "Do Today 🌄" tags-todo "+today/NEXT" ((org-agenda-overriding-header "Today 🌄")))
|
|
||||||
("sO" "Outdoors🚶" tags-todo "+@outdoors/NEXT" ((org-agenda-overriding-header "Outdoors🚶")))
|
|
||||||
("sT" "To takeaway 👝 " tags-todo "+takeaway" ((org-agenda-overriding-header "To takeaway 👝 ")))
|
|
||||||
|
|
||||||
("h" "💪 Daily habits 💪"
|
|
||||||
((agenda ""))
|
|
||||||
((org-agenda-show-log t)
|
|
||||||
(org-agenda-ndays 7)
|
|
||||||
(org-agenda-log-mode-items '(state))
|
|
||||||
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":Habbit:"))))
|
|
||||||
|
|
||||||
)
|
|
||||||
;; other commands here
|
|
||||||
|
|
||||||
)
|
|
||||||
#+end_src
|
#+end_src
|
||||||
*** PDF Tools
|
*** PDF Tools
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -416,6 +552,22 @@
|
||||||
:custom ((doom-modeline-height 15)))
|
:custom ((doom-modeline-height 15)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Calendar
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
;; https://github.com/emacsfodder/emacs-theme-darktooth
|
||||||
|
|
||||||
|
(use-package darktooth-theme
|
||||||
|
:straight (:host github :repo "emacsfodder/emacs-theme-darktooth" :branch "master" :files ("*.el" "out"))
|
||||||
|
)
|
||||||
|
;; (use-package emacs-calfw
|
||||||
|
;; :straight (:host github :repo "kiwanami/emacs-calfw" :branch "master" :files ("*.el" "out"))
|
||||||
|
;; :config
|
||||||
|
|
||||||
|
;; (require 'calfw)
|
||||||
|
;; (require 'calfw-org)
|
||||||
|
;; )
|
||||||
|
|
||||||
|
#+end_src
|
||||||
* Org Download
|
* Org Download
|
||||||
#+begin_src
|
#+begin_src
|
||||||
(use-package org-download
|
(use-package org-download
|
||||||
|
@ -550,52 +702,68 @@
|
||||||
:straight t
|
:straight t
|
||||||
:hook (org-roam-mode . company-org-roam)
|
:hook (org-roam-mode . company-org-roam)
|
||||||
)
|
)
|
||||||
(use-package yasnippet
|
|
||||||
:straight t
|
#+end_src
|
||||||
:config
|
* Snippets
|
||||||
(yas-reload-all)
|
#+begin_src emacs-lisp
|
||||||
(add-hook 'prog-mode-hook 'yas-minor-mode)
|
(use-package yasnippet
|
||||||
(add-hook 'text-mode-hook 'yas-minor-mode))
|
:straight t
|
||||||
|
:config
|
||||||
|
(yas-reload-all)
|
||||||
|
(add-hook 'prog-mode-hook 'yas-minor-mode)
|
||||||
|
(add-hook 'text-mode-hook 'yas-minor-mode)
|
||||||
|
(add-hook 'org-mode-hook 'yas-minor-mode)
|
||||||
|
|
||||||
|
|
||||||
|
)
|
||||||
|
(setq yas-snippet-dirs
|
||||||
|
'("~/.emacs.d/snippets" ;; personal snippets
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Org Roam
|
* Org Roam
|
||||||
|
** Basic
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:straight t
|
:straight t
|
||||||
:custom
|
:custom
|
||||||
(org-roam-directory (file-truename "/home/horhik/Notes/"))
|
(org-roam-directory (file-truename "/home/horhik/Notes/"))
|
||||||
:bind (("C-c n l" . org-roam-buffer-toggle)
|
:bind (("C-c n l" . org-roam-buffer-toggle)
|
||||||
("C-c n f" . org-roam-node-find)
|
("C-c n f" . org-roam-node-find)
|
||||||
("C-c n g" . org-roam-graph)
|
("C-c n g" . org-roam-graph)
|
||||||
("C-c n i" . org-roam-node-insert)
|
("C-c n i" . org-roam-node-insert)
|
||||||
("C-c n c" . org-roam-capture)
|
("C-c n c" . org-roam-capture)
|
||||||
;; Dailies
|
;; Dailies
|
||||||
("C-c n j" . org-roam-dailies-capture-today)
|
("C-c n j" . org-roam-dailies-capture-today)
|
||||||
|
|
||||||
;; Tags
|
;; Tags
|
||||||
("C-c t a" . org-roam-tag-add)
|
("C-c t a" . org-roam-tag-add)
|
||||||
("C-c t r" . org-roam-tag-remove)
|
("C-c t r" . org-roam-tag-remove)
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
:config
|
:config
|
||||||
;; If you're using a vertical completion framework, you might want a more informative completion interface
|
;; If you're using a vertical completion framework, you might want a more informative completion interface
|
||||||
(setq org-roam-completion-everywhere t)
|
(setq org-roam-completion-everywhere t)
|
||||||
(setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))
|
(setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))
|
||||||
(org-roam-db-autosync-mode)
|
(org-roam-db-autosync-mode)
|
||||||
;; If using org-roam-protocol
|
;; If using org-roam-protocol
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
:custom
|
(require 'org-roam-export)
|
||||||
(setq org-roam-db-location (concat org-roam-directory "/home/horhik/Notes/org-roam.db"))
|
|
||||||
(org-roam-directory "~/Notes/")
|
|
||||||
(org-roam-dailies-directory "~/Notes/journals/")
|
|
||||||
(org-roam-capture-templates
|
|
||||||
'(("d" "default" plain
|
|
||||||
"%?" :target
|
|
||||||
(file+head "pages/${slug}.org" "#+title: ${title}\n")
|
|
||||||
:unnarrowed t)))
|
|
||||||
|
|
||||||
)
|
:custom
|
||||||
|
(setq org-roam-db-location (concat org-roam-directory "/home/horhik/Notes/org-roam.db"))
|
||||||
|
(org-roam-directory "~/Notes/")
|
||||||
|
(org-roam-dailies-directory "~/Notes/journals/")
|
||||||
|
(org-roam-capture-templates
|
||||||
|
'(("d" "default" plain
|
||||||
|
"%?" :target
|
||||||
|
(file+head "pages/${slug}.org" "#+title: ${title}\n")
|
||||||
|
:unnarrowed t)))
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org-roam UI
|
** Org-roam UI
|
||||||
|
@ -637,7 +805,7 @@
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Projectile
|
* Projectile
|
||||||
#+
|
** Basic
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
:straight t
|
:straight t
|
||||||
|
@ -658,6 +826,7 @@
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
* Magit
|
* Magit
|
||||||
|
** Basic
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
(use-package magit
|
(use-package magit
|
||||||
|
@ -746,13 +915,14 @@
|
||||||
|
|
||||||
|
|
||||||
* LaTeX Ninja 🥷
|
* LaTeX Ninja 🥷
|
||||||
|
** Basic
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package cdlatex
|
(use-package cdlatex
|
||||||
:straight t
|
:straight t
|
||||||
:after org
|
:after org
|
||||||
:config
|
:config
|
||||||
(add-hook 'org-mode-hook 'org-cdlatex-mode)
|
(add-hook 'org-mode-hook 'org-cdlatex-mode)
|
||||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.3))
|
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
||||||
(setq org-preview-latex-default-process 'dvisvgm) ;No blur when scaling
|
(setq org-preview-latex-default-process 'dvisvgm) ;No blur when scaling
|
||||||
(defun my/text-scale-adjust-latex-previews ()
|
(defun my/text-scale-adjust-latex-previews ()
|
||||||
"Adjust the size of latex preview fragments when changing the
|
"Adjust the size of latex preview fragments when changing the
|
||||||
|
@ -775,7 +945,7 @@
|
||||||
(cons 'image
|
(cons 'image
|
||||||
(plist-put
|
(plist-put
|
||||||
(cdr (overlay-get ov 'display))
|
(cdr (overlay-get ov 'display))
|
||||||
:scale (+ 1.0 (* 0.25 text-scale-mode-amount))))))
|
:scale (+ 1.2 (* 0.25 text-scale-mode-amount))))))
|
||||||
|
|
||||||
(add-hook 'text-scale-mode-hook #'my/text-scale-adjust-latex-previews)
|
(add-hook 'text-scale-mode-hook #'my/text-scale-adjust-latex-previews)
|
||||||
)
|
)
|
||||||
|
@ -788,8 +958,88 @@
|
||||||
:config
|
:config
|
||||||
(add-hook 'org-mode-hook 'org-fragtog-mode)
|
(add-hook 'org-mode-hook 'org-fragtog-mode)
|
||||||
)
|
)
|
||||||
|
#+end_src
|
||||||
|
** Exporting to latex
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(with-eval-after-load 'ox-latex
|
||||||
|
(add-to-list 'org-latex-classes
|
||||||
|
'("org-plain-latex"
|
||||||
|
"\\documentclass{article}
|
||||||
|
[NO-DEFAULT-PACKAGES]
|
||||||
|
[PACKAGES]
|
||||||
|
[EXTRA]"
|
||||||
|
("\\section{%s}" . "\\section*{%s}")
|
||||||
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||||
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
* Starting with inline images
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq org-startup-with-inline-images t)
|
||||||
|
#+end_src
|
||||||
|
* inkscape integratio
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
|
(use-package inkscape
|
||||||
|
:straight (:host github
|
||||||
|
:repo "ymarco/inkscape.el"
|
||||||
|
:files ("*.el" "*.svg"))
|
||||||
|
:config
|
||||||
|
(setq inkscape-fig-dir "../assets/")
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
* Encoding
|
* Encoding
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(modify-coding-system-alist 'file "\\.tex\\'" 'cp1252)
|
(modify-coding-system-alist 'file "\\.tex\\'" 'cp1252)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* Telega
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package telega
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
(setq telega-use-docker nil))
|
||||||
|
#+end_src
|
||||||
|
* Music player
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package emms
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
|
||||||
|
(require 'emms-player-mplayer)
|
||||||
|
(require 'emms-player-simple)
|
||||||
|
(require 'emms-source-file)
|
||||||
|
(require 'emms-source-playlist)
|
||||||
|
(require 'emms-player-mplayer)
|
||||||
|
(setq emms-player-list '(emms-player-mpg321 emms-player-ogg123 emms-player-mplayer))
|
||||||
|
(setq exec-path (append exec-path '("/usr/local/bin")))
|
||||||
|
(add-to-list 'load-path "~/.emacs.d/site-lisp/emms/lisp")
|
||||||
|
(require 'emms-setup)
|
||||||
|
(require 'emms-player-mplayer)
|
||||||
|
(emms-standard)
|
||||||
|
(emms-default-players)
|
||||||
|
(define-emms-simple-player mplayer '(file url)
|
||||||
|
(regexp-opt '(".ogg" ".mp3" ".wav" ".mpg" ".mpeg" ".wmv" ".wma"
|
||||||
|
".mov" ".avi" ".divx" ".ogm" ".asf" ".mkv" "http://" "mms://"
|
||||||
|
".rm" ".rmvb" ".mp4" ".flac" ".vob" ".m4a" ".flv" ".ogv" ".pls"))
|
||||||
|
"mplayer" "-slave" "-quiet" "-really-quiet" "-fullscreen")
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
* Line NUmbers
|
||||||
|
* EAF
|
||||||
|
|
||||||
|
https://github.com/emacs-eaf/emacs-application-framework
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
|
(add-to-list 'load-path "~/.emacs.d/site-lisp/emacs-application-framework/")
|
||||||
|
(require 'eaf)
|
||||||
|
(require 'eaf-browser)
|
||||||
|
(require 'eaf-pdf-viewer)
|
||||||
|
(require 'eaf-music-player)
|
||||||
|
#+end_src
|
||||||
|
|
|
@ -66,14 +66,35 @@
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
:straight t)
|
:straight t)
|
||||||
|
|
||||||
(column-number-mode)
|
;(column-number-mode)
|
||||||
(global-display-line-numbers-mode)
|
(global-display-line-numbers-mode 0)
|
||||||
(dolist (mode '(org-mode-hook
|
(dolist (mode '(org-mode-hook
|
||||||
term-mode-hook
|
term-mode-hook
|
||||||
shell-mode-hook
|
shell-mode-hook
|
||||||
|
telega-root-mode-hook
|
||||||
|
telega-chat-mode-hook
|
||||||
|
doc-view-mode-hook
|
||||||
|
pdf-mode-hook
|
||||||
|
eww-mode-hook
|
||||||
eshell-mode-hook))
|
eshell-mode-hook))
|
||||||
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(add-hook 'shell-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'telega-root-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'help-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'telega-chat-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'telega-image-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'telega-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'doc-view-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'pdf-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
(add-hook 'eww-mode-hook #'(lambda()(display-line-numbers-mode -1)))
|
||||||
|
|
||||||
(use-package rainbow-delimiters
|
(use-package rainbow-delimiters
|
||||||
:straight t
|
:straight t
|
||||||
:hook (prog-mode . rainbow-delimiters-mode))
|
:hook (prog-mode . rainbow-delimiters-mode))
|
||||||
|
@ -127,6 +148,36 @@
|
||||||
(evil-collection-init)
|
(evil-collection-init)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
(use-package mixed-pitch
|
||||||
|
:straight t
|
||||||
|
:hook
|
||||||
|
(text-mode . mixed-pitch-mode)
|
||||||
|
:config
|
||||||
|
(set-face-attribute 'default nil :font "Mononoki Nerd Font" :height 130)
|
||||||
|
(set-face-attribute 'fixed-pitch nil :font "Mononoki Nerd Font")
|
||||||
|
(set-face-attribute 'variable-pitch nil :font "FiraSans"))
|
||||||
|
|
||||||
|
(defun opt ()
|
||||||
|
"open tasks"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/GTD/tasks.org"))
|
||||||
|
(defun opi ()
|
||||||
|
"open inbox"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/GTD/inbox.org"))
|
||||||
|
(defun opd ()
|
||||||
|
"open daily"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/GTD/daily.org"))
|
||||||
|
(defun opr ()
|
||||||
|
"open readlist"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/GTD/readlist.org"))
|
||||||
|
(defun opc ()
|
||||||
|
"open readlist"
|
||||||
|
(interactive)
|
||||||
|
(find-file "~/.emacs.d/config.org"))
|
||||||
|
|
||||||
(use-package general
|
(use-package general
|
||||||
:straight t
|
:straight t
|
||||||
:config
|
:config
|
||||||
|
@ -140,8 +191,16 @@
|
||||||
"/" 'swiper
|
"/" 'swiper
|
||||||
"b" 'counsel-switch-buffer
|
"b" 'counsel-switch-buffer
|
||||||
|
|
||||||
"f r" 'counsel-recentf
|
"f r" '(counsel-recentf :which-key "recent files")
|
||||||
"f f" 'counsel-find-file
|
"f f" '(counsel-find-file :which-key "find files")
|
||||||
|
"f c" '(opc :which-key "open config")
|
||||||
|
|
||||||
|
|
||||||
|
"t t" '(opt :which-key "✅Tasks")
|
||||||
|
"t i" '(opi :which-key "📥Inbox")
|
||||||
|
"t d" '(opd :which-key "🌄Daily")
|
||||||
|
"t r" '(opr :which-key "📚Readlist")
|
||||||
|
|
||||||
"SPC" 'counsel-M-x
|
"SPC" 'counsel-M-x
|
||||||
|
|
||||||
"a" 'org-agenda
|
"a" 'org-agenda
|
||||||
|
@ -155,140 +214,205 @@
|
||||||
:prefix "SPC")
|
:prefix "SPC")
|
||||||
|
|
||||||
(defun my/org-mode-setup()
|
(defun my/org-mode-setup()
|
||||||
(auto-fill-mode 0)
|
(auto-fill-mode 0)
|
||||||
(visual-line-mode 1)
|
(visual-line-mode 1)
|
||||||
(setq evil-auto-indent 1)
|
(setq evil-auto-indent 1)
|
||||||
(variable-pitch-mode t)
|
(variable-pitch-mode t)
|
||||||
(prettify-symbols-mode +1)
|
(prettify-symbols-mode +1)
|
||||||
(display-line-numbers-mode 0)
|
(display-line-numbers-mode 0)
|
||||||
|
)
|
||||||
|
|
||||||
|
(use-package org
|
||||||
|
:straight t
|
||||||
|
|
||||||
|
:hook ((org-mode . my/org-mode-setup)
|
||||||
|
(org-mode . variable-pitch-mode)
|
||||||
|
(org-mode . org-indent-mode)
|
||||||
|
(org-mode . prettify-symbols-mode)
|
||||||
|
)
|
||||||
|
:config
|
||||||
|
(require 'org-habit)
|
||||||
|
(add-to-list 'org-modules 'org-habit)
|
||||||
|
(setq org-habit-graph-column 60)
|
||||||
|
(setq org-treat-insert-todo-heading-as-state-change t)
|
||||||
|
(setq org-agenda-start-with-log-mode t)
|
||||||
|
(setq org-log-done 'time)
|
||||||
|
(setq org-log-into-drawer t)
|
||||||
|
|
||||||
|
|
||||||
|
;; Make sure org-indent face is available
|
||||||
|
;; Increase the size of various headings
|
||||||
|
|
||||||
|
|
||||||
|
(add-hook 'org-agenda-finalize-hook #'hl-line-mode)
|
||||||
|
|
||||||
|
(set-face-attribute 'org-document-title nil :font "FiraSans" :weight 'bold :height 1.3)
|
||||||
|
|
||||||
|
(dolist (face '((org-level-1 . 1.2)
|
||||||
|
(org-level-2 . 1.1)
|
||||||
|
(org-level-3 . 1.0)
|
||||||
|
(org-level-4 . 1.0)
|
||||||
|
(org-level-5 . 1.0)
|
||||||
|
(org-level-6 . 1.0)
|
||||||
|
(org-level-7 . 1.0)
|
||||||
|
(org-level-8 . 1.0)))
|
||||||
|
(set-face-attribute (car face) nil :font "FiraSans" :weight 'bold :height (cdr face)))
|
||||||
|
|
||||||
|
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
||||||
|
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
||||||
|
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
|
||||||
|
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
|
||||||
|
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
||||||
|
;(set-face-attribute 'org-indent nil :inherit '(org-hide fixed-pitch))
|
||||||
|
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
||||||
|
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||||
|
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||||
|
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
|
||||||
|
|
||||||
|
(setq org-agenda-files
|
||||||
|
'(
|
||||||
|
"~/GTD/habits.org"
|
||||||
|
"~/GTD/daily.org"
|
||||||
|
"~/GTD/tasks.org"
|
||||||
|
"~/GTD/inbox.org"
|
||||||
|
"~/GTD/watchlist.org"
|
||||||
|
"~/GTD/readlist.org"
|
||||||
|
))
|
||||||
|
(setq org-image-actual-width (list 550))
|
||||||
|
;; Get rid of the background on column views
|
||||||
|
(set-face-attribute 'org-column nil :background nil)
|
||||||
|
(set-face-attribute 'org-column-title nil :background nil)
|
||||||
|
(setq org-src-fontify-natively t)
|
||||||
|
(setq org-agenda-start-with-log-mode t)
|
||||||
|
(setq org-log-done 'time)
|
||||||
|
(setq org-log-into-drawer t)
|
||||||
|
(setq org-todo-keyword-faces '(("TODO" . org-warning)
|
||||||
|
("STARTED" . "yellow")
|
||||||
|
("DREAM" . "pink")
|
||||||
|
("PJ" . "pink")
|
||||||
|
("IDEA" . "gold")
|
||||||
|
("READ" . "violet")
|
||||||
|
("NEXT" . "red")
|
||||||
|
("ARTICLE" . "lightblue")
|
||||||
|
("CANCELED" .
|
||||||
|
(:foreground "blue"
|
||||||
|
:weight bold))))
|
||||||
|
|
||||||
|
(setq org-todo-keywords '((sequence "INBOX(i)" "PJ(p)" "TODO(t)" "NEXT(n)" "CAL(c)" "WAIT(w@/!)" "|" "DONE(d!)" "CANC(k@)")
|
||||||
|
(sequence "IDEA(I)" "DREAM(D)" "READ(R)" "|" "DONE(d!)" "CANC(k@)")
|
||||||
|
))
|
||||||
|
(setq org-agenda-custom-commands org-agenda-settings)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
(defun org-habit-streak-count ()
|
||||||
|
(point-min)
|
||||||
|
(while (not (eobp))
|
||||||
|
(when (get-text-property (point) 'org-habit-p)
|
||||||
|
(let ((count (count-matches
|
||||||
|
(char-to-string org-habit-completed-glyph)
|
||||||
|
(line-beginning-position) (line-end-position))))
|
||||||
|
(end-of-line)
|
||||||
|
(insert (number-to-string count))))
|
||||||
|
(forward-line 1)))
|
||||||
|
(add-hook 'org-agenda-finalize-hook 'org-habit-streak-count)
|
||||||
|
|
||||||
|
(use-package org-bullets
|
||||||
|
:after (org)
|
||||||
|
:hook (
|
||||||
|
(org-mode . org-bullets-mode )
|
||||||
|
(org-mode . org-indent-mode )
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
(require 'general)
|
||||||
|
(evil-define-key 'normal org-mode-map (kbd "<tab>") #'org-cycle)
|
||||||
|
(general-def org-mode-map
|
||||||
|
"TAB" 'org-cycle
|
||||||
|
)
|
||||||
|
|
||||||
|
(defun air-org-skip-subtree-if-priority (priority)
|
||||||
|
"Skip an agenda subtree if it has a priority of PRIORITY.
|
||||||
|
|
||||||
|
PRIORITY may be one of the characters ?A, ?B, or ?C."
|
||||||
|
(let ((subtree-end (save-excursion (org-end-of-subtree t)))
|
||||||
|
(pri-value (* 1000 (- org-lowest-priority priority)))
|
||||||
|
(pri-current (org-get-priority (thing-at-point 'line t))))
|
||||||
|
(if (= pri-value pri-current)
|
||||||
|
subtree-end
|
||||||
|
nil)))
|
||||||
|
(defun air-org-skip-subtree-if-habit ()
|
||||||
|
"Skip an agenda entry if it has a STYLE property equal to \"habit\"."
|
||||||
|
(let ((subtree-end (save-excursion (org-end-of-subtree t))))
|
||||||
|
(if (string= (org-entry-get nil "STYLE") "habit")
|
||||||
|
subtree-end
|
||||||
|
nil)))
|
||||||
|
(setq org-agenda-settings '(
|
||||||
|
("D" "Daily agenda and all TODOs"
|
||||||
|
((tags "PRIORITY=\"A\""
|
||||||
|
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
|
||||||
|
(org-agenda-overriding-header "High-priority unfinished tasks:")))
|
||||||
|
(agenda "" ((org-agenda-ndays 1)))
|
||||||
|
(alltodo ""
|
||||||
|
((org-agenda-skip-function '(or (air-org-skip-subtree-if-habit)
|
||||||
|
(air-org-skip-subtree-if-priority ?A)
|
||||||
|
(org-agenda-skip-if nil '(scheduled deadline))))
|
||||||
|
(org-agenda-overriding-header "ALL normal priority tasks:"))))
|
||||||
|
((org-agenda-compact-blocks t)))
|
||||||
|
("d" "Dashboard 📜"
|
||||||
|
(
|
||||||
|
(agenda "" ((org-deadline-warning-days 14)))
|
||||||
|
(tags "@morning" ((org-agenda-overriding-header "Eat the Frog 🐸")))
|
||||||
|
(tags "today/NEXT" ((org-agenda-overriding-header "Today Tasks 🌅")))
|
||||||
|
(todo "NEXT" ((org-agenda-overriding-header "Next Tasks ⏩")))
|
||||||
|
(todo "WAIT" ((org-agenda-overriding-header "Waiting tasks ⏰")))
|
||||||
|
(todo "PJ" ((org-agenda-overriding-header "Active Projects ")))
|
||||||
|
(todo "INBOX" ((org-agenda-overriding-header "Inbox 📥")))
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
|
("w" "Wait Tasks ⏰"
|
||||||
|
(todo "WAIT" ((org-agenda-overriding-header "Wait Tasks")))
|
||||||
|
(todo "NEXT" ((org-agenda-overriding-header "Wait Tasks")))
|
||||||
|
)
|
||||||
|
("c" "Dated Tasks 📅" ((todo "CAL" ((org-agenda-overriding-header "Dated Tasks")))))
|
||||||
|
|
||||||
|
("S" "Somewhen ⌛" ((todo "TODO" ((org-agenda-overriding-header "Somewhen ")))))
|
||||||
|
("R" "Read list 📚" tags-todo "+readlist")
|
||||||
|
("W" "Watch list 🎦" tags-todo "+watchlist")
|
||||||
|
("I" "Ideas 💡" tags-todo "+idea")
|
||||||
|
("P" "petprojects 🐕" tags-todo "+petproject")
|
||||||
|
("B" "Things to buy 🛍" tags-todo "+shoplist")
|
||||||
|
("sd" "Do Today 🌄" tags-todo "+today/NEXT" ((org-agenda-overriding-header "Today 🌄")))
|
||||||
|
|
||||||
|
;; My state/contexts
|
||||||
|
("s" . "My State and contexts")
|
||||||
|
("st" "Tired 🥱" tags-todo "+@tired/NEXT" ((org-agenda-overriding-header "Tired 🥱")))
|
||||||
|
("sh" "At home🏠" tags-todo "+@home/NEXT" ((org-agenda-overriding-header "At home🏠")))
|
||||||
|
("sc" "By a computer 💻" tags-todo "+@computer/NEXT" ((org-agenda-overriding-header "By a computer 💻")))
|
||||||
|
("ss" "On studies 🏫" tags-todo "+@uni/NEXT" ((org-agenda-overriding-header "On studies 🏫")))
|
||||||
|
("ss" "In Kwork 🧑 🛋️ " tags-todo "+@kwork/NEXT" ((org-agenda-overriding-header "In Kwork 🧑💻 🛋️ ")))
|
||||||
|
("so" "Online 🌐" tags-todo "+@online/NEXT" ((org-agenda-overriding-header "Online 🌐")))
|
||||||
|
("sO" "Outdoors🚶" tags-todo "+@outdoors/NEXT" ((org-agenda-overriding-header "Outdoors🚶")))
|
||||||
|
("sT" "To takeaway 👝 " tags-todo "+takeaway" ((org-agenda-overriding-header "To takeaway 👝 ")))
|
||||||
|
|
||||||
|
("F" "FROGS!" tags-todo "quack" ((org-agenda-overriding-header "🐸🐸🐸🐸🐸🐸")))
|
||||||
|
("h" "💪 Daily habits 💪"
|
||||||
|
((agenda ""))
|
||||||
|
((org-agenda-show-log t)
|
||||||
|
(org-agenda-ndays 3)
|
||||||
|
(org-agenda-log-mode-items '(state))
|
||||||
|
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp "Habit")))
|
||||||
|
)
|
||||||
|
|
||||||
|
("H" "💪Habits!💪🏻 " tags-todo "+Habit" ((org-agenda-overriding-header "Habits 💪")))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package org
|
;; other commands here
|
||||||
:straight t
|
|
||||||
|
|
||||||
:hook ((org-mode . my/org-mode-setup)
|
|
||||||
(org-mode . variable-pitch-mode)
|
|
||||||
(org-mode . org-indent-mode)
|
|
||||||
(org-mode . prettify-symbols-mode)
|
|
||||||
)
|
|
||||||
:config
|
|
||||||
;; Make sure org-indent face is available
|
|
||||||
;; Increase the size of various headings
|
|
||||||
(set-face-attribute 'org-document-title nil :font "Vollkorn" :weight 'bold :height 1.3)
|
|
||||||
|
|
||||||
(dolist (face '((org-level-1 . 1.2)
|
|
||||||
(org-level-2 . 1.1)
|
|
||||||
(org-level-3 . 1.0)
|
|
||||||
(org-level-4 . 1.0)
|
|
||||||
(org-level-5 . 1.0)
|
|
||||||
(org-level-6 . 1.0)
|
|
||||||
(org-level-7 . 1.0)
|
|
||||||
(org-level-8 . 1.0)))
|
|
||||||
(set-face-attribute (car face) nil :font "Vollkorn" :weight 'bold :height (cdr face)))
|
|
||||||
|
|
||||||
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
|
||||||
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
|
||||||
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
|
|
||||||
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
|
|
||||||
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
|
||||||
;(set-face-attribute 'org-indent nil :inherit '(org-hide fixed-pitch))
|
|
||||||
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
|
||||||
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
|
||||||
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
|
||||||
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
|
|
||||||
|
|
||||||
(setq org-agenda-files `("~/GTD"))
|
|
||||||
(setq org-image-actual-width (list 550))
|
|
||||||
;; Get rid of the background on column views
|
|
||||||
(set-face-attribute 'org-column nil :background nil)
|
|
||||||
(set-face-attribute 'org-column-title nil :background nil)
|
|
||||||
(setq org-src-fontify-natively t)
|
|
||||||
(setq org-agenda-start-with-log-mode t)
|
|
||||||
(setq org-log-done 'time)
|
|
||||||
(setq org-log-into-drawer t)
|
|
||||||
(setq org-todo-keyword-faces '(("TODO" . org-warning)
|
|
||||||
("STARTED" . "yellow")
|
|
||||||
("DREAM" . "pink")
|
|
||||||
("PJ" . "pink")
|
|
||||||
("IDEA" . "gold")
|
|
||||||
("READ" . "violet")
|
|
||||||
("NEXT" . "red")
|
|
||||||
("ARTICLE" . "lightblue")
|
|
||||||
("CANCELED" .
|
|
||||||
(:foreground "blue"
|
|
||||||
:weight bold))))
|
|
||||||
|
|
||||||
(setq org-todo-keywords '((sequence "INBOX(i)" "PJ(p)" "TODO(t)" "NEXT(n)" "CAL(c)" "WAIT(w@/!)" "|" "DONE(d!)" "CANC(k@)")
|
|
||||||
))
|
|
||||||
(setq org-agenda-custom-commands org-agenda-settings)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
(use-package org-bullets
|
|
||||||
:after (org)
|
|
||||||
:hook (
|
|
||||||
(org-mode . org-bullets-mode )
|
|
||||||
(org-mode . org-indent-mode )
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
(require 'general)
|
|
||||||
(evil-define-key 'normal org-mode-map (kbd "<tab>") #'org-cycle)
|
|
||||||
(general-def org-mode-map
|
|
||||||
"TAB" 'org-cycle
|
|
||||||
)
|
|
||||||
|
|
||||||
(setq org-agenda-settings '(
|
|
||||||
("d" "Dashboard 📜"
|
|
||||||
(
|
|
||||||
(agenda "" ((org-deadline-warning-days 14)))
|
|
||||||
(tags "@morning" ((org-agenda-overriding-header "Eat the Frog 🐸")))
|
|
||||||
(tags "today" ((org-agenda-overriding-header "Today Tasks 🌅")))
|
|
||||||
(todo "NEXT" ((org-agenda-overriding-header "Next Tasks ⏩")))
|
|
||||||
(todo "WAIT" ((org-agenda-overriding-header "Waiting tasks ⏰")))
|
|
||||||
(todo "PJ" ((org-agenda-overriding-header "Active Projects ")))
|
|
||||||
(todo "INBOX" ((org-agenda-overriding-header "Inbox 📥")))
|
|
||||||
))
|
|
||||||
|
|
||||||
|
|
||||||
("w" "Wait Tasks ⏰"
|
|
||||||
(todo "WAIT" ((org-agenda-overriding-header "Wait Tasks")))
|
|
||||||
(todo "NEXT" ((org-agenda-overriding-header "Wait Tasks")))
|
|
||||||
)
|
|
||||||
("c" "Dated Tasks 📅" ((todo "CAL" ((org-agenda-overriding-header "Dated Tasks")))))
|
|
||||||
|
|
||||||
("S" "Somewhen ⌛" ((todo "TODO" ((org-agenda-overriding-header "Somewhen ")))))
|
|
||||||
("R" "Read list 📚" tags-todo "+readlist")
|
|
||||||
("W" "Watch list 🎦" tags-todo "+watchlist")
|
|
||||||
("I" "Ideas 💡" tags-todo "+idea")
|
|
||||||
("P" "petprojects 🐕" tags-todo "+petproject")
|
|
||||||
("B" "Things to buy 🛍" tags-todo "+shoplist")
|
|
||||||
|
|
||||||
;; My state/contexts
|
|
||||||
("s" . "My State and contexts")
|
|
||||||
("st" "Tired 🥱" tags-todo "+@tired/NEXT" ((org-agenda-overriding-header "Tired 🥱")))
|
|
||||||
("sh" "At home🏠" tags-todo "+@home/NEXT" ((org-agenda-overriding-header "At home🏠")))
|
|
||||||
("sc" "By a computer 💻" tags-todo "+@computer/NEXT" ((org-agenda-overriding-header "By a computer 💻")))
|
|
||||||
("ss" "On studies 🏫" tags-todo "+@uni/NEXT" ((org-agenda-overriding-header "On studies 🏫")))
|
|
||||||
("so" "Online 🌐" tags-todo "+@online/NEXT" ((org-agenda-overriding-header "Online 🌐")))
|
|
||||||
("st" "Do Today 🌄" tags-todo "+today/NEXT" ((org-agenda-overriding-header "Today 🌄")))
|
|
||||||
("sO" "Outdoors🚶" tags-todo "+@outdoors/NEXT" ((org-agenda-overriding-header "Outdoors🚶")))
|
|
||||||
("sT" "To takeaway 👝 " tags-todo "+takeaway" ((org-agenda-overriding-header "To takeaway 👝 ")))
|
|
||||||
|
|
||||||
("h" "💪 Daily habits 💪"
|
|
||||||
((agenda ""))
|
|
||||||
((org-agenda-show-log t)
|
|
||||||
(org-agenda-ndays 7)
|
|
||||||
(org-agenda-log-mode-items '(state))
|
|
||||||
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":Habbit:"))))
|
|
||||||
|
|
||||||
)
|
|
||||||
;; other commands here
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
(use-package pdf-tools
|
(use-package pdf-tools
|
||||||
:straight t
|
:straight t
|
||||||
|
@ -324,6 +448,19 @@
|
||||||
:init (doom-modeline-mode 1)
|
:init (doom-modeline-mode 1)
|
||||||
:custom ((doom-modeline-height 15)))
|
:custom ((doom-modeline-height 15)))
|
||||||
|
|
||||||
|
;; https://github.com/emacsfodder/emacs-theme-darktooth
|
||||||
|
|
||||||
|
(use-package darktooth-theme
|
||||||
|
:straight (:host github :repo "emacsfodder/emacs-theme-darktooth" :branch "master" :files ("*.el" "out"))
|
||||||
|
)
|
||||||
|
;; (use-package emacs-calfw
|
||||||
|
;; :straight (:host github :repo "kiwanami/emacs-calfw" :branch "master" :files ("*.el" "out"))
|
||||||
|
;; :config
|
||||||
|
|
||||||
|
;; (require 'calfw)
|
||||||
|
;; (require 'calfw-org)
|
||||||
|
;; )
|
||||||
|
|
||||||
(use-package ivy
|
(use-package ivy
|
||||||
:straight t
|
:straight t
|
||||||
:diminish
|
:diminish
|
||||||
|
@ -419,22 +556,30 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package company
|
(use-package company
|
||||||
:straight t
|
|
||||||
:config
|
|
||||||
(company-mode 1)
|
|
||||||
(add-hook 'after-init-hook 'global-company-mode)
|
|
||||||
(setq company-backends '((company-capf :with company-yasnippet)))
|
|
||||||
)
|
|
||||||
(use-package company-org-roam
|
|
||||||
:straight t
|
|
||||||
:hook (org-roam-mode . company-org-roam)
|
|
||||||
)
|
|
||||||
(use-package yasnippet
|
|
||||||
:straight t
|
:straight t
|
||||||
:config
|
:config
|
||||||
(yas-reload-all)
|
(company-mode 1)
|
||||||
(add-hook 'prog-mode-hook 'yas-minor-mode)
|
(add-hook 'after-init-hook 'global-company-mode)
|
||||||
(add-hook 'text-mode-hook 'yas-minor-mode))
|
(setq company-backends '((company-capf :with company-yasnippet)))
|
||||||
|
)
|
||||||
|
(use-package company-org-roam
|
||||||
|
:straight t
|
||||||
|
:hook (org-roam-mode . company-org-roam)
|
||||||
|
)
|
||||||
|
|
||||||
|
(use-package yasnippet
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
(yas-reload-all)
|
||||||
|
(add-hook 'prog-mode-hook 'yas-minor-mode)
|
||||||
|
(add-hook 'text-mode-hook 'yas-minor-mode)
|
||||||
|
(add-hook 'org-mode-hook 'yas-minor-mode)
|
||||||
|
|
||||||
|
|
||||||
|
)
|
||||||
|
(setq yas-snippet-dirs
|
||||||
|
'("~/.emacs.d/snippets" ;; personal snippets
|
||||||
|
))
|
||||||
|
|
||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:straight t
|
:straight t
|
||||||
|
@ -461,6 +606,8 @@
|
||||||
(org-roam-db-autosync-mode)
|
(org-roam-db-autosync-mode)
|
||||||
;; If using org-roam-protocol
|
;; If using org-roam-protocol
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
|
(require 'org-roam-export)
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(setq org-roam-db-location (concat org-roam-directory "/home/horhik/Notes/org-roam.db"))
|
(setq org-roam-db-location (concat org-roam-directory "/home/horhik/Notes/org-roam.db"))
|
||||||
(org-roam-directory "~/Notes/")
|
(org-roam-directory "~/Notes/")
|
||||||
|
@ -598,7 +745,7 @@
|
||||||
:after org
|
:after org
|
||||||
:config
|
:config
|
||||||
(add-hook 'org-mode-hook 'org-cdlatex-mode)
|
(add-hook 'org-mode-hook 'org-cdlatex-mode)
|
||||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.3))
|
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
||||||
(setq org-preview-latex-default-process 'dvisvgm) ;No blur when scaling
|
(setq org-preview-latex-default-process 'dvisvgm) ;No blur when scaling
|
||||||
(defun my/text-scale-adjust-latex-previews ()
|
(defun my/text-scale-adjust-latex-previews ()
|
||||||
"Adjust the size of latex preview fragments when changing the
|
"Adjust the size of latex preview fragments when changing the
|
||||||
|
@ -621,7 +768,7 @@ buffer's text scale."
|
||||||
(cons 'image
|
(cons 'image
|
||||||
(plist-put
|
(plist-put
|
||||||
(cdr (overlay-get ov 'display))
|
(cdr (overlay-get ov 'display))
|
||||||
:scale (+ 1.0 (* 0.25 text-scale-mode-amount))))))
|
:scale (+ 1.2 (* 0.25 text-scale-mode-amount))))))
|
||||||
|
|
||||||
(add-hook 'text-scale-mode-hook #'my/text-scale-adjust-latex-previews)
|
(add-hook 'text-scale-mode-hook #'my/text-scale-adjust-latex-previews)
|
||||||
)
|
)
|
||||||
|
@ -632,4 +779,61 @@ buffer's text scale."
|
||||||
(add-hook 'org-mode-hook 'org-fragtog-mode)
|
(add-hook 'org-mode-hook 'org-fragtog-mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(with-eval-after-load 'ox-latex
|
||||||
|
(add-to-list 'org-latex-classes
|
||||||
|
'("org-plain-latex"
|
||||||
|
"\\documentclass{article}
|
||||||
|
[NO-DEFAULT-PACKAGES]
|
||||||
|
[PACKAGES]
|
||||||
|
[EXTRA]"
|
||||||
|
("\\section{%s}" . "\\section*{%s}")
|
||||||
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||||
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
|
||||||
|
|
||||||
|
(setq org-startup-with-inline-images t)
|
||||||
|
|
||||||
|
(use-package inkscape
|
||||||
|
:straight (:host github
|
||||||
|
:repo "ymarco/inkscape.el"
|
||||||
|
:files ("*.el" "*.svg"))
|
||||||
|
:config
|
||||||
|
(setq inkscape-fig-dir "../assets/")
|
||||||
|
)
|
||||||
|
|
||||||
(modify-coding-system-alist 'file "\\.tex\\'" 'cp1252)
|
(modify-coding-system-alist 'file "\\.tex\\'" 'cp1252)
|
||||||
|
|
||||||
|
(use-package telega
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
(setq telega-use-docker nil))
|
||||||
|
|
||||||
|
(use-package emms
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
|
||||||
|
(require 'emms-player-mplayer)
|
||||||
|
(require 'emms-player-simple)
|
||||||
|
(require 'emms-source-file)
|
||||||
|
(require 'emms-source-playlist)
|
||||||
|
(require 'emms-player-mplayer)
|
||||||
|
(setq emms-player-list '(emms-player-mpg321 emms-player-ogg123 emms-player-mplayer))
|
||||||
|
(setq exec-path (append exec-path '("/usr/local/bin")))
|
||||||
|
(add-to-list 'load-path "~/.emacs.d/site-lisp/emms/lisp")
|
||||||
|
(require 'emms-setup)
|
||||||
|
(require 'emms-player-mplayer)
|
||||||
|
(emms-standard)
|
||||||
|
(emms-default-players)
|
||||||
|
(define-emms-simple-player mplayer '(file url)
|
||||||
|
(regexp-opt '(".ogg" ".mp3" ".wav" ".mpg" ".mpeg" ".wmv" ".wma"
|
||||||
|
".mov" ".avi" ".divx" ".ogm" ".asf" ".mkv" "http://" "mms://"
|
||||||
|
".rm" ".rmvb" ".mp4" ".flac" ".vob" ".m4a" ".flv" ".ogv" ".pls"))
|
||||||
|
"mplayer" "-slave" "-quiet" "-really-quiet" "-fullscreen")
|
||||||
|
)
|
||||||
|
|
||||||
|
(add-to-list 'load-path "~/.emacs.d/site-lisp/emacs-application-framework/")
|
||||||
|
(require 'eaf)
|
||||||
|
(require 'eaf-browser)
|
||||||
|
(require 'eaf-pdf-viewer)
|
||||||
|
(require 'eaf-music-player)
|
||||||
|
|
0
home/emacs/.emacs.d/snippets/org-mode/smatrix
Normal file
0
home/emacs/.emacs.d/snippets/org-mode/smatrix
Normal file
14
home/fontconfig/.config/fontconfig/conf.d/78-Reject.conf
Executable file
14
home/fontconfig/.config/fontconfig/conf.d/78-Reject.conf
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||||
|
<!-- Generated by Font Manager. Do NOT edit this file. -->
|
||||||
|
<fontconfig>
|
||||||
|
<selectfont>
|
||||||
|
<rejectfont>
|
||||||
|
<pattern>
|
||||||
|
<patelt name="family">
|
||||||
|
<string>Noto Kufi Arabic</string>
|
||||||
|
</patelt>
|
||||||
|
</pattern>
|
||||||
|
</rejectfont>
|
||||||
|
</selectfont>
|
||||||
|
</fontconfig>
|
27
home/fontconfig/.config/fontconfig/fonts.conf.back
Executable file
27
home/fontconfig/.config/fontconfig/fonts.conf.back
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<match target="font">
|
||||||
|
<edit name="antialias" mode="assign">
|
||||||
|
<bool>true</bool>
|
||||||
|
</edit>
|
||||||
|
<edit name="hinting" mode="assign">
|
||||||
|
<bool>false</bool>
|
||||||
|
</edit>
|
||||||
|
<edit name="hintstyle" mode="assign">
|
||||||
|
<const>hintslight</const>
|
||||||
|
</edit>
|
||||||
|
<edit name="rgba" mode="assign">
|
||||||
|
<const>none</const>
|
||||||
|
</edit>
|
||||||
|
<edit name="autohint" mode="assign">
|
||||||
|
<bool>false</bool>
|
||||||
|
</edit>
|
||||||
|
<edit name="lcdfilter" mode="assign">
|
||||||
|
<const>lcdnone</const>
|
||||||
|
</edit>
|
||||||
|
<edit name="dpi" mode="assign">
|
||||||
|
<double>102</double>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
26
home/fontconfig/.config/fontconfig/twemoji.conf
Executable file
26
home/fontconfig/.config/fontconfig/twemoji.conf
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Twemoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Twemoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>monospace</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Twemoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
</fontconfig>
|
|
@ -3,7 +3,7 @@ LocationMode=path-bar
|
||||||
ShowHidden=false
|
ShowHidden=false
|
||||||
ShowSizeColumn=true
|
ShowSizeColumn=true
|
||||||
GeometryX=241
|
GeometryX=241
|
||||||
GeometryY=162
|
GeometryY=168
|
||||||
GeometryWidth=1437
|
GeometryWidth=1437
|
||||||
GeometryHeight=773
|
GeometryHeight=773
|
||||||
SortColumn=modified
|
SortColumn=modified
|
||||||
|
|
|
@ -222,6 +222,7 @@ hc rule instance~hlwmScratch.* floating=on floatplacement=center # float all ins
|
||||||
hc keybind $Mod-space spawn ~/.config/herbstluftwm/changelang
|
hc keybind $Mod-space spawn ~/.config/herbstluftwm/changelang
|
||||||
hc keybind $Mod1-shift spawn ~/.config/herbstluftwm/changelang
|
hc keybind $Mod1-shift spawn ~/.config/herbstluftwm/changelang
|
||||||
hc keybind $Mod-F3 spawn ~/.config/herbstluftwm/nospanish.sh
|
hc keybind $Mod-F3 spawn ~/.config/herbstluftwm/nospanish.sh
|
||||||
|
hc keybind $Mod-F4 spawn ~/.config/herbstluftwm/noenglish.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
if [ -f /tmp/nospanish ]; then
|
if [ -f /tmp/nospanish ]; then
|
||||||
setxkbmap us,ru && xkb-switch -n
|
setxkbmap us,ru && xkb-switch -n
|
||||||
else
|
else if [ -f /tmp/noenglish ]; then
|
||||||
setxkbmap us,ru,es && xkb-switch -n
|
setxkbmap ru,es && xkb-switch -n
|
||||||
|
else
|
||||||
|
setxkbmap us,ru,es && xkb-switch -n
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
9
home/herbstluftwm/.config/herbstluftwm/noenglish.sh
Executable file
9
home/herbstluftwm/.config/herbstluftwm/noenglish.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#! /bin/sh
|
||||||
|
if [ -f /tmp/noenglish ]; then
|
||||||
|
rm /tmp/noenglish
|
||||||
|
notify-send "🇬🇧 ENGLISH ENABLED🇬🇸 "
|
||||||
|
else
|
||||||
|
echo yes > /tmp/noenglish
|
||||||
|
notify-send "🇬🇧 ENGLISH DISAB 🇬"
|
||||||
|
fi
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
if [ -f /tmp/nospanish ]; then
|
if [ -f /tmp/nospanish ]; then
|
||||||
rm /tmp/nospanish
|
rm /tmp/nospanish
|
||||||
notify-send "🇪🇸 ❌SPANISH DISABLED❌ 🇪🇸 "
|
notify-send "🇪🇸 ✅SPANISH ENABLED✅🇪🇸 "
|
||||||
else
|
else
|
||||||
echo yes > /tmp/nospanish
|
echo yes > /tmp/nospanish
|
||||||
notify-send "🇪🇸 ✅SPANISH ENABLED✅🇪🇸 "
|
notify-send "🇪🇸 ❌SPANISH DISABLED❌ 🇪🇸 "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
BIN
home/mpd/.config/mpd/database
Executable file → Normal file
BIN
home/mpd/.config/mpd/database
Executable file → Normal file
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
# Corners #
|
# Corners #
|
||||||
#################################
|
#################################
|
||||||
# requires: https://github.com/sdhand/compton
|
# requires: https://github.com/sdhand/compton
|
||||||
corner-radius = 0.0;
|
corner-radius = 5.0;
|
||||||
rounded-corners-exclude = [
|
rounded-corners-exclude = [
|
||||||
"window_type = 'dialog'",
|
"window_type = 'dialog'",
|
||||||
"window_type = 'popup_menu'",
|
"window_type = 'popup_menu'",
|
||||||
|
@ -27,11 +27,15 @@ rounded-corners-exclude = [
|
||||||
"class_g = 'code-oss'",
|
"class_g = 'code-oss'",
|
||||||
"class_g = 'firefox'",
|
"class_g = 'firefox'",
|
||||||
"class_g = 'firefox'",
|
"class_g = 'firefox'",
|
||||||
"class_g = 'Thunderbird'"
|
"class_g = 'Thunderbird'",
|
||||||
|
"class_g = '_HERBST_FRAME'",
|
||||||
|
"class_g = '_NET_WM_WINDOW_TYPE_DOC'"
|
||||||
];
|
];
|
||||||
round-borders = 1;
|
round-borders = 5;
|
||||||
round-borders-exclude = [
|
round-borders-exclude = [
|
||||||
#"class_g = 'TelegramDesktop'",
|
"class_g = '_HERBST_FRAME'",
|
||||||
|
"class_g = '_NET_WM_WINDOW_TYPE_DOC'"
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Specify a list of border width rules, in the format `PIXELS:PATTERN`,
|
# Specify a list of border width rules, in the format `PIXELS:PATTERN`,
|
||||||
|
@ -46,7 +50,11 @@ round-borders-rule = [
|
||||||
"3:class_g = 'URxvt'",
|
"3:class_g = 'URxvt'",
|
||||||
"2:window_type = 'dropdown_menu'",
|
"2:window_type = 'dropdown_menu'",
|
||||||
"2:class_g = 'Alacritty'",
|
"2:class_g = 'Alacritty'",
|
||||||
"15:class_g = 'Signal'"
|
"15:class_g = 'Signal'",
|
||||||
|
"3:class_g = 'hlwmScratch1'",
|
||||||
|
"3:class_g = 'Kitty'",
|
||||||
|
"2:class_g = 'Emacs'",
|
||||||
|
"2:class_g = 'Zathura'"
|
||||||
];
|
];
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
@ -193,6 +201,7 @@ focus-exclude = [
|
||||||
# opacity-rule = []
|
# opacity-rule = []
|
||||||
opacity-rule = [
|
opacity-rule = [
|
||||||
"80:class_g = 'Bar'", # lemonbar
|
"80:class_g = 'Bar'", # lemonbar
|
||||||
|
"80:class_g = 'Org.gnome.Nautilus'", # lemonbar
|
||||||
"100:class_g = 'slop'", # maim
|
"100:class_g = 'slop'", # maim
|
||||||
"100:class_g = 'XTerm'",
|
"100:class_g = 'XTerm'",
|
||||||
"100:class_g = 'URxvt'",
|
"100:class_g = 'URxvt'",
|
||||||
|
@ -217,17 +226,17 @@ opacity-rule = [
|
||||||
|
|
||||||
# Parameters for background blurring, see the *BLUR* section for more information.
|
# Parameters for background blurring, see the *BLUR* section for more information.
|
||||||
# blur-method =
|
# blur-method =
|
||||||
blur-size = 12
|
blur-size = 0
|
||||||
#
|
#
|
||||||
# blur-deviation = false
|
# blur-deviation = false
|
||||||
#
|
#
|
||||||
blur-strength = 5
|
blur-strength = 0;
|
||||||
|
|
||||||
# Blur background of semi-transparent / ARGB windows.
|
# Blur background of semi-transparent / ARGB windows.
|
||||||
# Bad in performance, with driver-dependent behavior.
|
# Bad in performance, with driver-dependent behavior.
|
||||||
# The name of the switch may change without prior notifications.
|
# The name of the switch may change without prior notifications.
|
||||||
#
|
#
|
||||||
blur-background = true;
|
blur-background = false;
|
||||||
|
|
||||||
# Blur background of windows when the window frame is not opaque.
|
# Blur background of windows when the window frame is not opaque.
|
||||||
# Implies:
|
# Implies:
|
||||||
|
@ -245,21 +254,21 @@ blur-background = true;
|
||||||
# example:
|
# example:
|
||||||
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
|
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
|
||||||
#
|
#
|
||||||
# blur-kern = ""
|
blur-kern = ""
|
||||||
blur-kern = "3x3box";
|
# blur-kern = "3x3box";
|
||||||
|
|
||||||
|
|
||||||
blur: {
|
blur: {
|
||||||
# requires: https://github.com/ibhagwan/picom
|
# requires: https://github.com/ibhagwan/picom
|
||||||
method = "kawase";
|
method = "kawase";
|
||||||
#method = "kernel";
|
#method = "kernel";
|
||||||
strength = 7;
|
strength = 4;
|
||||||
# deviation = 1.0;
|
# deviation = 1.0;
|
||||||
# kernel = "11x11gaussian";
|
# kernel = "11x11gaussian";
|
||||||
background = true;
|
background = true;
|
||||||
background-frame = true;
|
background-frame = true;
|
||||||
background-fixed = true;
|
background-fixed = true;
|
||||||
kern = "3x3box";
|
kern = "3x3box";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Exclude conditions for background blur.
|
# Exclude conditions for background blur.
|
||||||
|
@ -281,7 +290,10 @@ blur-background-exclude = [
|
||||||
"window_type = 'dialog'",
|
"window_type = 'dialog'",
|
||||||
"window_type = 'tooltip'",
|
"window_type = 'tooltip'",
|
||||||
"window_type = 'notification'",
|
"window_type = 'notification'",
|
||||||
"_GTK_FRAME_EXTENTS@:c"
|
"_GTK_FRAME_EXTENTS@:c",
|
||||||
|
"class_g = '_NET_WM_WINDOW_TYPE_DOC'",
|
||||||
|
"class_g = '_HERBST_FRAME'"
|
||||||
|
# "class_g = 'Emacs'"
|
||||||
];
|
];
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"gtabs":[{"panes":[{"ptabs":[{"history":[{"dir":"/home/horhik/code/olymp","file":"mosh","relpos":3,"ts":1613970304},{"dir":"/home/horhik/code/olymp/mosh","file":"1613639442920-problems","relpos":1,"ts":1613970304},{"dir":"/home/horhik/code/olymp/mosh/1613639442920-problems","file":"..","relpos":0,"ts":1613970304},{"dir":"/home/horhik/code/olymp/mosh","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik/code/olymp","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik/code","file":"JOB","relpos":1,"ts":1613999829},{"dir":"/home/horhik/code/JOB","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik/code","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik","file":"Pictures","relpos":16,"ts":1613999829},{"dir":"/home/horhik/Pictures","file":"photo_2019-10-07_14-14-53.jpg","relpos":4,"ts":1613999829}],"filters":{"invert":true,"dot":true,"manual":"","auto":""},"last-location":"/home/horhik/Pictures","sorting":[2],"preview":false}]},{"ptabs":[{"history":[{"dir":"/home/horhik/code/olymp","file":"..","relpos":0,"ts":1613970304}],"filters":{"invert":true,"dot":true,"manual":"","auto":""},"last-location":"/home/horhik/code/olymp","sorting":[2],"preview":false}]}],"active-pane":0,"preview":false,"splitter":{"pos":-1,"ratio":0.5,"orientation":"v","expanded":false}}],"marks":{"b":{"dir":"/home/horhik/bin/","file":"..","ts":1613970286},"h":{"dir":"/home/horhik/","file":"..","ts":1613970286}},"bmarks":{},"cmd-hist":[{"text":"e ~/Pictures/","ts":1613999829},{"text":"tabnext","ts":1613999829},{"text":"q","ts":1613999829}],"search-hist":[{"text":"Pict","ts":1613999829}],"prompt-hist":[{"text":"1613639442920-problems","ts":1613999829}],"regs":{},"dir-stack":[],"use-term-multiplexer":false}
|
{"gtabs":[{"panes":[{"ptabs":[{"history":[{"dir":"/home/horhik/code/olymp","file":"mosh","relpos":3,"ts":1613970304},{"dir":"/home/horhik/code/olymp/mosh","file":"1613639442920-problems","relpos":1,"ts":1613970304},{"dir":"/home/horhik/code/olymp/mosh/1613639442920-problems","file":"..","relpos":0,"ts":1613970304},{"dir":"/home/horhik/code/olymp/mosh","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik/code/olymp","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik/code","file":"JOB","relpos":1,"ts":1613999829},{"dir":"/home/horhik/code/JOB","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik/code","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik","file":"Pictures","relpos":16,"ts":1613999829},{"dir":"/home/horhik/Pictures","file":"..","relpos":0,"ts":1613999829},{"dir":"/home/horhik","file":"Nextcloud","relpos":14,"ts":1667664675},{"dir":"/home/horhik/Nextcloud","file":"Documents","relpos":5,"ts":1667664675},{"dir":"/home/horhik/Nextcloud/Documents","file":"..","relpos":0,"ts":1667664675},{"dir":"/home/horhik/Nextcloud","file":"..","relpos":0,"ts":1667664675},{"dir":"/home/horhik","file":"Downloads","relpos":9,"ts":1667664675},{"dir":"/home/horhik/Downloads","file":"Telegram Desktop","relpos":3,"ts":1667664675},{"dir":"/home/horhik/Downloads/Telegram Desktop","file":"Лек_1сем_23_Ф-ла_Тейлора.pdf","relpos":5,"ts":1667664675}],"filters":{"invert":true,"dot":true,"manual":"","auto":""},"last-location":"/home/horhik/Downloads/Telegram Desktop","sorting":[2],"preview":false}]},{"ptabs":[{"history":[{"dir":"/home/horhik/code/olymp","file":"..","relpos":0,"ts":1613970304},{"dir":"/home/horhik","file":"..","relpos":0,"ts":1667664675}],"filters":{"invert":true,"dot":true,"manual":"","auto":""},"last-location":"/home/horhik","sorting":[2],"preview":false}]}],"active-pane":0,"preview":false,"splitter":{"pos":-1,"ratio":0.5,"orientation":"v","expanded":false}}],"marks":{"b":{"dir":"/home/horhik/bin/","file":"..","ts":1613970286},"h":{"dir":"/home/horhik/","file":"..","ts":1613970286}},"bmarks":{},"cmd-hist":[{"text":"e ~/Pictures/","ts":1613999829},{"text":"tabnext","ts":1613999829},{"text":"q","ts":1613999829}],"search-hist":[{"text":"Pict","ts":1613999829},{"text":"лек","ts":1667664675}],"prompt-hist":[{"text":"1613639442920-problems","ts":1613999829}],"regs":{},"dir-stack":[],"use-term-multiplexer":false}
|
|
@ -24,3 +24,7 @@ set path+=**
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'dracula/vim'
|
Plug 'dracula/vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
|
au BufRead,BufNewFile *.asm set filetype=nasm
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue