mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
emacs: toggle version-specific-build-dir
Some checks failed
Update Site / trigger_update (push) Has been cancelled
Some checks failed
Update Site / trigger_update (push) Has been cancelled
This commit is contained in:
parent
36455936e2
commit
b0837527ef
2 changed files with 15 additions and 9 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
;;; -*- lexical-binding: t -*-
|
;;; -*- lexical-binding: t -*-
|
||||||
|
|
||||||
|
(setq straight-use-version-specific-build-dir t)
|
||||||
|
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
(let ((bootstrap-file
|
(let ((bootstrap-file
|
||||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
|
|
|
||||||
22
Emacs.org
22
Emacs.org
|
|
@ -85,16 +85,19 @@ First things first, lexical binding.
|
||||||
;;; -*- lexical-binding: t -*-
|
;;; -*- lexical-binding: t -*-
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Packages
|
** straight.el
|
||||||
*** straight.el
|
Straight.el is my Emacs package manager of choice. The following is its bootstrap script.
|
||||||
Straight.el is my Emacs package manager of choice. Its advantages & disadvantages over other options are listed pretty thoroughly in the README file in the repo.
|
|
||||||
|
|
||||||
The following is the bootstrap script of =straight.el=.
|
|
||||||
|
|
||||||
References:
|
References:
|
||||||
- [[https://github.com/raxod502/straight.el][straight.el repo]]
|
- [[https://github.com/raxod502/straight.el][straight.el repo]]
|
||||||
|
|
||||||
#+begin_src emacs-lisp :noweb-ref minimal
|
The following is set to ~t~ to support multiple Emacs versions working at the same time. In particular, the Termux and the Android version.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq straight-use-version-specific-build-dir t)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
(let ((bootstrap-file
|
(let ((bootstrap-file
|
||||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
|
|
@ -108,6 +111,7 @@ References:
|
||||||
(eval-print-last-sexp)))
|
(eval-print-last-sexp)))
|
||||||
(load bootstrap-file nil 'nomessage))
|
(load bootstrap-file nil 'nomessage))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** use-package
|
*** use-package
|
||||||
A macro to simplify package specification & configuration. Integrates with straight.el.
|
A macro to simplify package specification & configuration. Integrates with straight.el.
|
||||||
|
|
||||||
|
|
@ -116,7 +120,7 @@ Set ~use-package-verbose~ to ~t~ to print out loading times for individual packa
|
||||||
References:
|
References:
|
||||||
- [[https://github.com/jwiegley/use-package][use-package repo]]
|
- [[https://github.com/jwiegley/use-package][use-package repo]]
|
||||||
|
|
||||||
#+begin_src emacs-lisp :noweb-ref minimal
|
#+begin_src emacs-lisp
|
||||||
(straight-use-package 'use-package)
|
(straight-use-package 'use-package)
|
||||||
(eval-when-compile (require 'use-package))
|
(eval-when-compile (require 'use-package))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
@ -732,7 +736,7 @@ References:
|
||||||
**** Evil-mode
|
**** Evil-mode
|
||||||
Basic evil configuration.
|
Basic evil configuration.
|
||||||
|
|
||||||
#+begin_src emacs-lisp :noweb-ref minimal
|
#+begin_src emacs-lisp
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:straight t
|
:straight t
|
||||||
:init
|
:init
|
||||||
|
|
@ -833,7 +837,7 @@ Do ex search in other buffer. Like =*=, but switch to other buffer and search th
|
||||||
**** evil-collection
|
**** evil-collection
|
||||||
[[https://github.com/emacs-evil/evil-collection][evil-collection]] is a package that provides evil bindings for a lot of different packages. One can see the complete list in the [[https://github.com/emacs-evil/evil-collection/tree/master/modes][modes]] folder.
|
[[https://github.com/emacs-evil/evil-collection][evil-collection]] is a package that provides evil bindings for a lot of different packages. One can see the complete list in the [[https://github.com/emacs-evil/evil-collection/tree/master/modes][modes]] folder.
|
||||||
|
|
||||||
#+begin_src emacs-lisp :noweb-ref minimal
|
#+begin_src emacs-lisp
|
||||||
(use-package evil-collection
|
(use-package evil-collection
|
||||||
:straight t
|
:straight t
|
||||||
:after evil
|
:after evil
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue