mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(sioyek): Add sioyek configs
* feat(sioyek): Add sioyek configs * feat(surfingkeys): Add sspai.com keymaps * feat(emacs): Add Doom Org Configs, Org LaTeX YASSnippets * fix(hypr): Fix bluetooth GUI name
This commit is contained in:
parent
38d3bf7ae9
commit
5daa07f4c2
11 changed files with 153 additions and 40 deletions
37
tools/doom/org.el
Normal file
37
tools/doom/org.el
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
;; For CJK users
|
||||
;; Insert zero width space around the emphasis symbols, this might be useful for
|
||||
;; languages that does not rely on space
|
||||
(after! org
|
||||
(defun my/insert-emphasis-with-zws (char)
|
||||
(interactive "c")
|
||||
(insert ?\u200B char)
|
||||
(save-excursion (insert char ?\u200B)))
|
||||
|
||||
(map! :map org-mode-map
|
||||
"C-c b" (lambda () (interactive) (my/insert-emphasis-with-zws ?*))
|
||||
"C-c i" (lambda () (interactive) (my/insert-emphasis-with-zws ?/))
|
||||
"C-c u" (lambda () (interactive) (my/insert-emphasis-with-zws ?_)))
|
||||
|
||||
(map! :map evil-org-mode-map
|
||||
:nv "I" #'evil-next-buffer)
|
||||
|
||||
|
||||
(setq org-archive-location "~/OrgFiles/archive/%s_archive::")
|
||||
(setq org-default-notes-file "~/OrgFiles/tasks/inbox.org")
|
||||
(setq org-capture-templates
|
||||
'(("t" "Task" entry (file+headline "~/OrgFiles/tasks/inbox.org" "Tasks")
|
||||
"* TODO %?\n %U\n %a\n %i"
|
||||
:empty-lines 1)))
|
||||
)
|
||||
|
||||
|
||||
(after! org-agenda
|
||||
(map! :map evil-org-agenda-mode-map
|
||||
:nv "n" #'org-agenda-next-line
|
||||
:nv "e" #'org-agenda-previous-line
|
||||
"gn" 'org-agenda-next-item
|
||||
"ge" 'org-agenda-previous-item
|
||||
:nv "i" #'evil-forward-char)
|
||||
(setq org-agenda-files (directory-files-recursively "~/OrgFiles/tasks/" "\\.org$"))
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue