~put straight into init.el
This commit is contained in:
@@ -19,29 +19,6 @@ including encryption (ooooo);
|
|||||||
(setq user-full-name "Aryadev Chavali"
|
(setq user-full-name "Aryadev Chavali"
|
||||||
user-mail-address "aryadev@aryadevchavali.com")
|
user-mail-address "aryadev@aryadevchavali.com")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Setup straight
|
|
||||||
Bootstrap of straight (from github)
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(defvar bootstrap-version)
|
|
||||||
(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))
|
|
||||||
#+END_SRC
|
|
||||||
** Setup use package
|
|
||||||
Straight clone use-package and state that all use-package statements
|
|
||||||
implicity use straight.
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(straight-use-package 'use-package)
|
|
||||||
(setq straight-use-package-by-default t)
|
|
||||||
#+END_SRC
|
|
||||||
** Setup alpha and yes-or-no-p
|
** Setup alpha and yes-or-no-p
|
||||||
This just sets the alpha to 85% and all yes or no questions to single
|
This just sets the alpha to 85% and all yes or no questions to single
|
||||||
letter responses.
|
letter responses.
|
||||||
|
|||||||
@@ -1,3 +1,20 @@
|
|||||||
|
;; Straight
|
||||||
|
(defvar bootstrap-version)
|
||||||
|
(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))
|
||||||
|
|
||||||
|
(setq straight-use-package-by-default t)
|
||||||
|
(straight-use-package 'use-package)
|
||||||
|
|
||||||
;; Load literate
|
;; Load literate
|
||||||
(setq user-emacs-directory "~/.config/emacs/")
|
(setq user-emacs-directory "~/.config/emacs/")
|
||||||
(defconst +literate/files (list "config.org"))
|
(defconst +literate/files (list "config.org"))
|
||||||
|
|||||||
Reference in New Issue
Block a user