~moved config/*.org -> org/*.org

Also changed literate to for this change
This commit is contained in:
odave
2020-03-29 17:13:42 +01:00
parent d689b505da
commit c20b9d62d0
5 changed files with 7 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ Load the literate.el file to start parsing.
#+BEGIN_SRC elisp #+BEGIN_SRC elisp
(after! core-keybinds (after! core-keybinds
(setq doom-localleader-key ",") (setq doom-localleader-key ",")
(setq doom-theme 'base16-3024) (setq doom-theme 'doom-solarized-dark)
(setq doom-font (font-spec :family "Hack" :size 17))) (setq doom-font (font-spec :family "Hack" :size 17)))
#+END_SRC #+END_SRC
- Set the doom localleader to "," because it's faster - Set the doom localleader to "," because it's faster
@@ -27,7 +27,7 @@ Load the literate.el file to start parsing.
(setq completion-ignore-case t) (setq completion-ignore-case t)
(setq truncate-lines t) (setq truncate-lines t)
(setq display-line-numbers-type nil) (setq display-line-numbers-type nil)
(setq bookmark-default-file (expand-file-name (concat doom-private-dir "/bookmarks"))) (setq bookmark-default-file (expand-file-name (concat doom-private-dir "bookmarks")))
(setq-default frame-title-format '("%b - Emacs")) (setq-default frame-title-format '("%b - Emacs"))
(cl-pushnew '("Libgen" "http://gen.lib.rus.ec/search.php?req=%s") +lookup-provider-url-alist :key #'car :test 'string=) (cl-pushnew '("Libgen" "http://gen.lib.rus.ec/search.php?req=%s") +lookup-provider-url-alist :key #'car :test 'string=)
#+END_SRC #+END_SRC
@@ -122,7 +122,6 @@ If RETURN-P, return the message as a string instead of displaying it."
:icon (all-the-icons-octicon "file-directory" :face 'font-lock-keyword-face) :icon (all-the-icons-octicon "file-directory" :face 'font-lock-keyword-face)
:action oreodave/goto-dotfiles))) :action oreodave/goto-dotfiles)))
#+END_SRC #+END_SRC
- Space image comes from [[https://flaticon.com][website]] - Space image comes from [[https://flaticon.com][website]]
- Remove the Github link to the official Doom Emacs repository: it's in muscle memory - Remove the Github link to the official Doom Emacs repository: it's in muscle memory
at this point. at this point.

View File

@@ -11,8 +11,8 @@ Initialise some basic constants for where stuff is.
preloaded/don't need to be compiled preloaded/don't need to be compiled
#+BEGIN_SRC elisp #+BEGIN_SRC elisp
(setq oreodave/literate/bin-dir (expand-file-name (concat doom-private-dir "bin/"))) (setq oreodave/literate/bin-dir (expand-file-name (concat doom-private-dir "bin/")))
(setq oreodave/literate/preloaded-files (list "README.org" "config/packages.org" (setq oreodave/literate/preloaded-files (list "README.org" "org/packages.org"
"config/config.org" "config/literate.org")) "org/config.org" "org/literate.org"))
#+END_SRC #+END_SRC
* Remove function * Remove function
When loading the lisp, we need to load everything excluding "config.el" When loading the lisp, we need to load everything excluding "config.el"
@@ -70,10 +70,10 @@ loaded. README.org has been added as an exception because it doesn't contain
literate contents. literate contents.
#+BEGIN_SRC elisp #+BEGIN_SRC elisp
(defun oreodave/literate/compile-hook () (defun oreodave/literate/compile-hook ()
"Any org file within $DOOM/config will be compiled on save" "Any org file within $DOOM/org will be compiled on save"
(when (and (eq major-mode 'org-mode) (when (and (eq major-mode 'org-mode)
(or (file-in-directory-p buffer-file-name doom-private-dir) (or (file-in-directory-p buffer-file-name doom-private-dir)
(file-in-directory-p buffer-file-name (concat doom-private-dir "config"))) (file-in-directory-p buffer-file-name (concat doom-private-dir "org")))
(not (string= buffer-file-name (expand-file-name (concat doom-private-dir "README.org"))))) (not (string= buffer-file-name (expand-file-name (concat doom-private-dir "README.org")))))
(oreodave/literate/tangle buffer-file-name (oreodave/literate/destination buffer-file-name)))) (oreodave/literate/tangle buffer-file-name (oreodave/literate/destination buffer-file-name))))
@@ -105,7 +105,7 @@ Remove the config.el and literate.el files from the load list because:
2) literate.org is loaded by config.org, thus no need to reload it 2) literate.org is loaded by config.org, thus no need to reload it
#+BEGIN_SRC elisp #+BEGIN_SRC elisp
(let ((files (directory-files-recursively "~/.doom.d/config/" ".org"))) ; Load (let ((files (directory-files-recursively "~/.doom.d/org/" ".org"))) ; Load
(dolist (file (oreodave/literate/remove-mult oreodave/literate/preloaded-files files)) (dolist (file (oreodave/literate/remove-mult oreodave/literate/preloaded-files files))
(load (oreodave/literate/destination file)))) (load (oreodave/literate/destination file))))
#+END_SRC #+END_SRC