Updated emacs backup
This commit is contained in:
parent
31b0be2ee8
commit
9f8fa43bd6
7
config/emacs/.stignore
Normal file
7
config/emacs/.stignore
Normal file
|
@ -0,0 +1,7 @@
|
|||
!init.el
|
||||
!emacs.png
|
||||
!/00 assets
|
||||
!/00 reference
|
||||
!/.stignore
|
||||
// Ignore everything else:
|
||||
*
|
BIN
config/emacs/00 assets/ac273182b3bbd00f9e72223861d3938b.png
Normal file
BIN
config/emacs/00 assets/ac273182b3bbd00f9e72223861d3938b.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
config/emacs/00 assets/emacs.ico
Normal file
BIN
config/emacs/00 assets/emacs.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
BIN
config/emacs/00 assets/emacs.png
Normal file
BIN
config/emacs/00 assets/emacs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
config/emacs/00 assets/stpauls.jpg
Normal file
BIN
config/emacs/00 assets/stpauls.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
BIN
config/emacs/00 reference/cheat_sheet_emacs.pdf
Normal file
BIN
config/emacs/00 reference/cheat_sheet_emacs.pdf
Normal file
Binary file not shown.
1418
config/emacs/00 reference/initOLD.el
Normal file
1418
config/emacs/00 reference/initOLD.el
Normal file
File diff suppressed because it is too large
Load diff
BIN
config/emacs/00 reference/treemacs.pdf
Normal file
BIN
config/emacs/00 reference/treemacs.pdf
Normal file
Binary file not shown.
|
@ -18,6 +18,8 @@
|
|||
[[https://www.linuxjournal.com/content/org-mode-latex-exporter-latex-non-texers]]
|
||||
[[https://config.daviwil.com/emacs]]
|
||||
[[https://www.reddit.com/r/emacs/comments/6r32q4/orgmode_whats_your_html_export_look_like/]]
|
||||
[[https://blog.aaronbieber.com/2016/09/24/an-agenda-for-life-with-org-mode.html][Agenda]]
|
||||
[[https://orgmode.org/worg/org-tutorials/orgtutorial_dto.html][Agenda]]
|
||||
|
||||
"Straight - Package Manager"
|
||||
"straight.el: next-generation, purely functional package manager for the Emacs hacker."
|
||||
|
@ -237,12 +239,23 @@
|
|||
|
||||
|
||||
|
||||
;; set font
|
||||
(set-face-attribute 'default nil
|
||||
:family "SpaceMono Nerd Font"
|
||||
;:family "DaddyTimeMono Nerd Font Mono"
|
||||
;; :family "JetBrains Mono Nerd Font Mono"
|
||||
:height 115)
|
||||
"font"
|
||||
(set-face-attribute 'default nil :family "SpaceMono Nerd Font" :weight 'regular :height 120)
|
||||
(set-face-attribute 'fixed-pitch nil :font "SpaceMono Nerd Font" :weight 'bold :height 190)
|
||||
(set-face-attribute 'variable-pitch nil :font "SpaceMono Nerd Font" :weight 'bold :height 1.3)
|
||||
|
||||
|
||||
|
||||
"Add frame borders and window dividers"
|
||||
(modify-all-frames-parameters
|
||||
'((right-divider-width . 10)
|
||||
(internal-border-width . 10)))
|
||||
(dolist (face '(window-divider
|
||||
window-divider-first-pixel
|
||||
window-divider-last-pixel))
|
||||
(face-spec-reset-face face)
|
||||
(set-face-foreground face (face-attribute 'default :background)))
|
||||
(set-face-background 'fringe (face-attribute 'default :background))
|
||||
|
||||
|
||||
|
||||
|
@ -1013,11 +1026,32 @@ By default, this is only a different background color."
|
|||
(use-package org :demand t)
|
||||
|
||||
|
||||
"org-agenda"
|
||||
;;(setq org-agenda-files
|
||||
;; (cond ((string-equal (system-name) "weda")
|
||||
;; (setq org-roam-directory "~/Syncthing/org-roam/stpaul's/00 org/todo.org"))
|
||||
;; ((string-equal (system-name) "tyr")
|
||||
;; (setq org-roam-directory "~/Syncthing/org-roam/stpaul's/00 org/todo.org"))
|
||||
;; ((string-equal (system-name) "DESKTOP-FIS3P5B")
|
||||
;; (setq org-roam-directory "c:/Users/Church/Documents/Syncthing/org-roam/stpaul's/00 org/stpaul's.org"))))
|
||||
;;
|
||||
|
||||
|
||||
;; set the default export scope to subtree
|
||||
;;(setf org-export-initial-scope 'subtree)
|
||||
|
||||
|
||||
|
||||
(setq org-html-head "<meta http-equiv='X-UA-Compatible' content='IE=edge'><meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'><style>html{touch-action:manipulation;-webkit-text-size-adjust:100%}body{padding:0;margin:0;background:#f2f6fa;color:#3c495a;font-weight:normal;font-size:15px;font-family:'San Francisco','Roboto','Arial',sans-serif}h2,h3,h4,h5,h6{font-family:'Trebuchet MS',Verdana,sans-serif;color:#586b82;padding:0;margin:20px 0 10px 0;font-size:1.1em}h2{margin:30px 0 10px 0;font-size:1.2em}a{color:#3fa7ba;text-decoration:none}p{margin:6px 0;text-align:justify}ul,ol{margin:0;text-align:justify}ul>li>code{color:#586b82}pre{white-space:pre-wrap}#content{width:96%;max-width:1000px;margin:2% auto 6% auto;background:white;border-radius:2px;border-right:1px solid #e2e9f0;border-bottom:2px solid #e2e9f0;padding:0 115px 150px 115px;box-sizing:border-box}#postamble{display:none}h1.title{background-color:#343C44;color:#fff;margin:0 -115px;padding:60px 0;font-weight:normal;font-size:2em;border-top-left-radius:2px;border-top-right-radius:2px}@media (max-width: 1050px){#content{padding:0 70px 100px 70px}h1.title{margin:0 -70px}}@media (max-width: 800px){#content{width:100%;margin-top:0;margin-bottom:0;padding:0 4% 60px 4%}h1.title{margin:0 -5%;padding:40px 5%}}pre,.verse{box-shadow:none;background-color:#f9fbfd;border:1px solid #e2e9f0;color:#586b82;padding:10px;font-family:monospace;overflow:auto;margin:6px 0}#table-of-contents{margin-bottom:50px;margin-top:50px}#table-of-contents h2{margin-bottom:5px}#text-table-of-contents ul{padding-left:15px}#text-table-of-contents>ul{padding-left:0}#text-table-of-contents li{list-style-type:none}#text-table-of-contents a{color:#7c8ca1;font-size:0.95em;text-decoration:none}table{border-color:#586b82;font-size:0.95em}table thead{color:#586b82}table tbody tr:nth-child(even){background:#f9f9f9}table tbody tr:hover{background:#586b82!important;color:white}table .left{text-align:left}table .right{text-align:right}.todo{font-family:inherit;color:inherit}.done{color:inherit}.tag{background:initial}.tag>span{background-color:#eee;font-family:monospace;padding-left:7px;padding-right:7px;border-radius:2px;float:right;margin-left:5px}#text-table-of-contents .tag>span{float:none;margin-left:0}.timestamp{color:#7c8ca1}@media print{@page{margin-bottom:3cm;margin-top:3cm;margin-left:2cm;margin-right:2cm;font-size:10px}#content{border:none}}</style>")
|
||||
|
||||
|
||||
|
||||
"Export to Markdown"
|
||||
(eval-after-load "org"
|
||||
'(require 'ox-md nil t))
|
||||
|
||||
|
||||
|
||||
(setq org-todo-keywords
|
||||
'((sequence "TODO(t)" "HOLD(h)" "SCHD(s)" "|" "DONE(d)" "FAIL(f)")))
|
||||
|
||||
|
@ -1032,8 +1066,8 @@ By default, this is only a different background color."
|
|||
;;(use-package org-bullets)
|
||||
;;(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
|
||||
|
||||
|
||||
|
||||
"org-modern"
|
||||
[[https://github.com/minad/org-modern]]
|
||||
(use-package org-modern
|
||||
:hook
|
||||
(org-mode . global-org-modern-mode)
|
||||
|
@ -1042,7 +1076,7 @@ By default, this is only a different background color."
|
|||
(org-modern-checkbox nil)
|
||||
(org-modern-table nil))
|
||||
|
||||
|
||||
|
||||
|
||||
(require 'org-mouse)
|
||||
|
||||
|
@ -1052,6 +1086,12 @@ By default, this is only a different background color."
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
(add-hook 'org-mode-hook 'visual-line-mode)
|
||||
|
||||
|
||||
|
||||
"Automatically mark parent as done when subtasks are completed"
|
||||
(defun org-summary-todo (n-done n-not-done)
|
||||
"Switch entry to DONE when all subentries are done, to TODO otherwise."
|
||||
|
@ -1074,11 +1114,17 @@ By default, this is only a different background color."
|
|||
org-use-sub-superscripts "{}"
|
||||
org-hide-emphasis-markers t
|
||||
org-startup-with-inline-images t
|
||||
org-image-actual-width '(300))
|
||||
org-tags-column 0
|
||||
org-catch-invisible-edits 'show-and-error
|
||||
org-special-ctrl-a/e t
|
||||
org-insert-heading-respect-content t
|
||||
org-image-actual-width '(300))
|
||||
|
||||
;; Increase line spacing
|
||||
(setq-default line-spacing 2)
|
||||
|
||||
|
||||
|
||||
;;"LaTeX previews"
|
||||
;; (use-package org-fragtog
|
||||
;; :after org
|
||||
|
@ -1228,7 +1274,7 @@ By default, this is only a different background color."
|
|||
:unnarrowed t)
|
||||
|
||||
("f" "flower order" plain
|
||||
"\n#+Author: Eric Wagner\n#+tags:\n#+OPTIONS: num:nil author:nil toc:nil\n* Flower Order\n#+ATTR_HTML: :border 2 :rules all :frame border\n|Field|Value|\n|---|---|\n|**Total Due**|AMOUNT|\n|**Date Emtered**|%t|\n|**Date Scheduled**|xxxxxx\n|**Reference**|${title}|\n|**Type**|FLOWER_TYPE|\n|**Bulletin Message**|The TYPE are given by NAME |\n|**Arrangment Instructions**|INSTRUCTIONS|\n|**Pickup Time**|TIME|\n|**Requested by**|NAME|\n|\n *[ ] Add to Prayer Chain?"
|
||||
"\n#+Author: Eric Wagner\n#+tags:\n#+OPTIONS: num:nil author:nil toc:nil\n* Flower Order\n#+ATTR_HTML: :border 2 :rules all :frame border\n|Field|Value|\n|---|---|\n|**Total Due**|AMOUNT|\n|**Date Entered**|%t|\n|**Date Scheduled**|xxxxxx\n|**Reference**|${title}|\n|**Type**|FLOWER_TYPE|\n|**Bulletin Message**|The TYPE are given by NAME |\n|**Arrangment Instructions**|INSTRUCTIONS|\n|**Pickup Time**|TIME|\n|**Requested by**|NAME|\n|\n * [ ] Add to Prayer Chain?"
|
||||
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
|
||||
"#+title: ${title}\n")
|
||||
:unnarrowed t)
|
||||
|
@ -1257,16 +1303,18 @@ By default, this is only a different background color."
|
|||
(use-package org-roam-ui
|
||||
;; :straight
|
||||
;; (:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
|
||||
;; :after org-roam
|
||||
:after org-roam
|
||||
;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have
|
||||
;; a hookable mode anymore, you're advised to pick something yourself
|
||||
;; if you don't care about startup time, use
|
||||
:hook (after-init . org-roam-ui-mode)
|
||||
;; :hook (after-init . org-roam-ui-mode)
|
||||
;; :config
|
||||
(setq org-roam-ui-sync-theme t
|
||||
org-roam-ui-follow t
|
||||
org-roam-ui-update-on-save t
|
||||
org-roam-ui-open-on-start f))
|
||||
org-roam-ui-open-on-start f
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
@ -1651,4 +1699,23 @@ By default, this is only a different background color."
|
|||
(define-key yafolding-mode-map (kbd "C-c <C-S-return>") 'yafolding-hide-parent-element)
|
||||
(define-key yafolding-mode-map (kbd "C-c <C-return>") 'yafolding-toggle-element)
|
||||
|
||||
|
||||
|
||||
"yasnippet"
|
||||
"Yet another snippet extension for Emacs"
|
||||
"Creating the snippet
|
||||
To create the snippet file execute the command `yas-new-snippet` (C-c & C-n), yasnippets internally expands the snippet-writing snippet.
|
||||
A new buffer will open with the base model to define the new snippet in the snippet-mode major mode."
|
||||
[[https://github.com/joaotavora/yasnippet]]
|
||||
(use-package yasnippet
|
||||
:hook ((text-mode
|
||||
prog-mode
|
||||
conf-mode
|
||||
snippet-mode) . yas-minor-mode-on)
|
||||
:init
|
||||
;;(setq yas-snippet-dir "~/.emacs.d/snippets")
|
||||
(setq yas-snippet-dir "~/Documents/Syncthing/org-roam/stpaul's/snippets"))
|
||||
|
||||
|
||||
|
||||
;;; init.el ends here
|
||||
|
|
Loading…
Reference in a new issue