aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-08-11 20:10:23 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-08-11 20:10:23 +0100
commit0cb72b3793de453fad20df2be36bca86d3bd3dc9 (patch)
treed8b5911a9537296af236dc7a1b441a5a78101cad /Emacs/.config/emacs
parent8325ed164e62470bd645bf262009e6319874925a (diff)
downloaddotfiles-0cb72b3793de453fad20df2be36bca86d3bd3dc9.tar.gz
dotfiles-0cb72b3793de453fad20df2be36bca86d3bd3dc9.tar.bz2
dotfiles-0cb72b3793de453fad20df2be36bca86d3bd3dc9.zip
~put straight into init.el
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r--Emacs/.config/emacs/config.org23
-rw-r--r--Emacs/.config/emacs/init.el17
2 files changed, 17 insertions, 23 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 14e645e..7a4ca16 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -19,29 +19,6 @@ including encryption (ooooo);
(setq user-full-name "Aryadev Chavali"
user-mail-address "aryadev@aryadevchavali.com")
#+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
This just sets the alpha to 85% and all yes or no questions to single
letter responses.
diff --git a/Emacs/.config/emacs/init.el b/Emacs/.config/emacs/init.el
index 6ccf93b..9b7a855 100644
--- a/Emacs/.config/emacs/init.el
+++ b/Emacs/.config/emacs/init.el
@@ -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
(setq user-emacs-directory "~/.config/emacs/")
(defconst +literate/files (list "config.org"))