diff options
-rw-r--r-- | config.org | 95 |
1 files changed, 53 insertions, 42 deletions
diff --git a/config.org b/config.org index 3069841..6bef9ed 100644 --- a/config.org +++ b/config.org | |||
@@ -5,7 +5,7 @@ | |||
5 | #+EXPORT_FILE_NAME: README.md | 5 | #+EXPORT_FILE_NAME: README.md |
6 | #+OPTIONS: toc:nil | 6 | #+OPTIONS: toc:nil |
7 | #+BANKRUPTCY_COUNT: 3.2 | 7 | #+BANKRUPTCY_COUNT: 3.2 |
8 | #+Time-stamp: <2020-12-30 23:33:02 acdw> | 8 | #+Time-stamp: <2021-01-01 11:00:05 acdw> |
9 | 9 | ||
10 | Why the hell not, let’s do this again. | 10 | Why the hell not, let’s do this again. |
11 | 11 | ||
@@ -79,18 +79,20 @@ Now, I'll /try/ running it regular-style, ignoring the errors. If it | |||
79 | doesn't work, I'll call git directly and clone the repo myself. | 79 | doesn't work, I'll call git directly and clone the repo myself. |
80 | 80 | ||
81 | #+BEGIN_SRC emacs-lisp | 81 | #+BEGIN_SRC emacs-lisp |
82 | (unless (ignore-errors (acdw/bootstrap-straight)) | 82 | (unless (ignore-errors (acdw/bootstrap-straight)) |
83 | (message "Straight.el didn't bootstrap correctly. Cloning directly...") | 83 | (message "%s" "Straight.el didn't bootstrap correctly. Cloning directly...") |
84 | (call-process "git" nil | 84 | (call-process "git" nil |
85 | (get-buffer-create "*bootstrap-straight-messages*") nil | 85 | (get-buffer-create "*bootstrap-straight-messages*") nil |
86 | "clone" | 86 | "clone" |
87 | "https://github.com/raxod502/straight.el" | 87 | "https://github.com/raxod502/straight.el" |
88 | (expand-file-name "straight/repos/straight.el" | 88 | (expand-file-name "straight/repos/straight.el" |
89 | user-emacs-directory)) | 89 | user-emacs-directory)) |
90 | (acdw/bootstrap-straight)) | 90 | (acdw/bootstrap-straight)) |
91 | #+END_SRC | 91 | #+END_SRC |
92 | 92 | ||
93 | ** Customize macro | 93 | ** Customize macros |
94 | |||
95 | *** Emulate use-package’s =:custom= | ||
94 | 96 | ||
95 | #+BEGIN_SRC emacs-lisp | 97 | #+BEGIN_SRC emacs-lisp |
96 | (defmacro cuss (var val &optional docstring) | 98 | (defmacro cuss (var val &optional docstring) |
@@ -767,16 +769,16 @@ Anyway, I should probably be able to figure out how to properly change the theme | |||
767 | *** Backups | 769 | *** Backups |
768 | 770 | ||
769 | #+BEGIN_SRC emacs-lisp | 771 | #+BEGIN_SRC emacs-lisp |
770 | (cuss backup-by-copying 1) | 772 | (cuss backup-by-copying 1) |
771 | (cuss delete-old-versions -1) | 773 | (cuss delete-old-versions -1) |
772 | (cuss version-control t) | 774 | (cuss version-control t) |
773 | (cuss vc-make-backup-files t) | 775 | (cuss vc-make-backup-files t) |
774 | 776 | ||
775 | (with-eval-after-load 'no-littering | 777 | (with-eval-after-load 'no-littering |
776 | (let ((dir (no-littering-expand-var-file-name "backup"))) | 778 | (let ((dir (no-littering-expand-var-file-name "backup"))) |
777 | (make-directory dir 'parents) | 779 | (make-directory dir 'parents) |
778 | (cuss backup-directory-alist | 780 | (cuss backup-directory-alist |
779 | `((".*" . ,dir))))) | 781 | `((".*" . ,dir))))) |
780 | #+END_SRC | 782 | #+END_SRC |
781 | 783 | ||
782 | *** Auto-saves | 784 | *** Auto-saves |
@@ -1006,25 +1008,25 @@ I’ve put org mode under Applications, as opposed to Writing, because it’s m | |||
1006 | *** Basics | 1008 | *** Basics |
1007 | 1009 | ||
1008 | #+BEGIN_SRC emacs-lisp | 1010 | #+BEGIN_SRC emacs-lisp |
1009 | (straight-use-package 'org) | 1011 | (straight-use-package 'org) |
1010 | 1012 | ||
1011 | (with-eval-after-load 'org | 1013 | (with-eval-after-load 'org |
1012 | (require 'org-tempo) | 1014 | (require 'org-tempo) |
1013 | (require 'ox-md) | 1015 | (require 'ox-md) |
1014 | (define-key org-mode-map (kbd "M-n") #'outline-next-visible-heading) | 1016 | (define-key org-mode-map (kbd "M-n") #'outline-next-visible-heading) |
1015 | (define-key org-mode-map (kbd "M-p") #'outline-previous-visible-heading)) | 1017 | (define-key org-mode-map (kbd "M-p") #'outline-previous-visible-heading)) |
1016 | 1018 | ||
1017 | (cuss org-hide-emphasis-markers t) | 1019 | (cuss org-hide-emphasis-markers t) |
1018 | (cuss org-fontify-done-headline t) | 1020 | (cuss org-fontify-done-headline t) |
1019 | (cuss org-fontify-whole-heading-line t) | 1021 | (cuss org-fontify-whole-heading-line t) |
1020 | (cuss org-fontify-quote-and-verse-blocks t) | 1022 | (cuss org-fontify-quote-and-verse-blocks t) |
1021 | (cuss org-pretty-entities t) | 1023 | (cuss org-pretty-entities t) |
1022 | (cuss org-num-mode +1) | 1024 | (cuss org-src-tab-acts-natively t) |
1023 | (cuss org-src-tab-acts-natively t) | 1025 | (cuss org-src-fontify-natively t) |
1024 | (cuss org-src-fontify-natively t) | 1026 | (cuss org-src-window-setup 'current-window) |
1025 | (cuss org-src-window-setup 'current-window) | 1027 | (cuss org-confirm-babel-evaluate nil) |
1026 | (cuss org-confirm-babel-evaluate nil) | 1028 | (cuss org-directory "~/Org") |
1027 | (cuss org-directory "~/Org") | 1029 | (cuss org-ellipsis "…") |
1028 | #+END_SRC | 1030 | #+END_SRC |
1029 | 1031 | ||
1030 | **** Tags | 1032 | **** Tags |
@@ -1285,7 +1287,7 @@ I realized I didn’t need =early-init.el=, since it really only set =load-prefe | |||
1285 | 1287 | ||
1286 | *** emacsdc | 1288 | *** emacsdc |
1287 | 1289 | ||
1288 | Here's a wrapper script that'll start =emacs –daemon= if there isn't | 1290 | Here's a wrapper script that'll start =emacs --daemon= if there isn't |
1289 | one, and then launch =emacsclient= with the arguments. I'd recommend | 1291 | one, and then launch =emacsclient= with the arguments. I'd recommend |
1290 | installing with either ~ln -s bin/emacsdc $HOME/.local/bin/~, or | 1292 | installing with either ~ln -s bin/emacsdc $HOME/.local/bin/~, or |
1291 | adding =$HOME/.local/bin= to your =$PATH=. | 1293 | adding =$HOME/.local/bin= to your =$PATH=. |
@@ -1299,10 +1301,19 @@ fi | |||
1299 | 1301 | ||
1300 | *** Emacs.cmd | 1302 | *** Emacs.cmd |
1301 | 1303 | ||
1302 | Here’s a wrapper script that’ll run Emacs on Windows, with a custom =$HOME=. I have mine setup like this: Emacs is downloaded from [[https://mirrors.tripadvisor.com/gnu/emacs/windows/emacs-27/emacs-27.1-x86_64.zip][the GNU mirror]] and unzipped to =~/Downloads/emacs/=. =Emacs.cmd= sets =$HOME= to =~/Downloads/emacshome/=, which is where =.emacs.d= is, and whatever else I might want to throw in there. | 1304 | Here's a wrapper script that'll run Emacs on Windows, with a custom |
1305 | =$HOME=. I have mine setup like this: Emacs is downloaded from [[https://mirrors.tripadvisor.com/gnu/emacs/windows/emacs-27/emacs-27.1-x86_64.zip][the | ||
1306 | GNU mirror]] and unzipped to =~/Downloads/emacs/=. =Emacs.cmd= sets | ||
1307 | =$HOME= to =~/Downloads/emacshome/=, which is where =.emacs.d= is, and | ||
1308 | whatever else I might want to throw in there. | ||
1303 | 1309 | ||
1304 | #+begin_src bat :tangle bin/Emacs.cmd | 1310 | #+begin_src bat :tangle bin/Emacs.cmd |
1305 | set HOME=%~dp0..\..\emacshome | 1311 | set HOME=%~dp0..\..\emacshome |
1312 | |||
1313 | REM Run "Quick Mode" | ||
1314 | REM "%~dp0runemacs.exe" -Q %* | ||
1315 | |||
1316 | REM Regular | ||
1306 | "%~dp0runemacs.exe" %* | 1317 | "%~dp0runemacs.exe" %* |
1307 | #+end_src | 1318 | #+end_src |
1308 | 1319 | ||