Browse Source

Ensure latest version of org is used

Juan Placencia 4 years ago
parent
commit
7ec8b7c2e4
3 changed files with 24 additions and 32 deletions
  1. +19
    -0
      init.el
  2. +4
    -26
      uno/bootstrap.org
  3. +1
    -6
      uno/modules/doc/org.org

+ 19
- 0
init.el View File

@ -1,3 +1,22 @@
(setq
straight-profiles `((nil . ,(expand-file-name "straight.lock.el" user-emacs-directory)))
straight-use-package-by-default t)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
;; Load bootstrap.org for actual setup ;; Load bootstrap.org for actual setup
(use-package org-contrib)
(org-babel-load-file (org-babel-load-file
(locate-user-emacs-file (convert-standard-filename "uno/bootstrap.org"))) (locate-user-emacs-file (convert-standard-filename "uno/bootstrap.org")))

+ 4
- 26
uno/bootstrap.org View File

@ -53,37 +53,13 @@ Isolate or remove backup files for a clean structure.
tramp-persistency-file-name (uno-cache-path "tramp/history")) tramp-persistency-file-name (uno-cache-path "tramp/history"))
#+END_SRC #+END_SRC
* Straight + Use Package
* General
Run bootstrap code for =straight= and have =use-package= ready.
Set up generic and leader key binds that are used throughout. =general= is loaded first to set up integration with =evil= before setting up =general=.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq
straight-profiles `((nil . ,(uno-emacs-path "straight.lock.el")))
straight-use-package-by-default t)
(let ((bootstrap-file
(uno-emacs-path "straight/repos/straight.el/bootstrap.el"))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(use-package general) (use-package general)
#+END_SRC
* General
Set up general and leader key binds that are used throughout.
#+BEGIN_SRC emacs-lisp
(use-package evil (use-package evil
:custom :custom
(evil-want-keybinding nil) (evil-want-keybinding nil)
@ -120,6 +96,8 @@ Set up general and leader key binds that are used throughout.
* Modules * Modules
Traverse through modules and load each one.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(let* ((uno-module-directory (uno-path "modules/")) (let* ((uno-module-directory (uno-path "modules/"))
(uno-module-files (directory-files-recursively (uno-module-files (directory-files-recursively

+ 1
- 6
uno/modules/doc/org.org View File

@ -17,7 +17,6 @@ Define Org document package.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org (use-package org
:after uno-doc-org :after uno-doc-org
:ensure org-plus-contrib
:custom :custom
(org-adapt-indentation nil) (org-adapt-indentation nil)
(org-ellipsis " ▼") (org-ellipsis " ▼")
@ -71,13 +70,9 @@ Define Org document package.
'(org-level-6 ((t (:inherit outline-6 :height 1.15))))))) '(org-level-6 ((t (:inherit outline-6 :height 1.15)))))))
:config :config
(require 'ox-beamer) (require 'ox-beamer)
(require 'ox-groff)
(require 'ox-md)) (require 'ox-md))
(use-package org-contrib
:after (uno-doc-org org)
:config
(require 'ox-groff))
(use-package org-superstar (use-package org-superstar
:if (display-graphic-p) :if (display-graphic-p)
:after (uno-doc-org org) :after (uno-doc-org org)

Loading…
Cancel
Save