emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit ca719cab5273f2f28b89e7866a4e202054827f29
parent 4bf6add9002869b6f7d87987fcf847f7b2294547
Author: Cem Keylan <cem@ckyln.com>
Date:   Sun, 19 Apr 2020 12:20:03 +0300

use code block inside org code block

Diffstat:
Minit.org | 28++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/init.org b/init.org @@ -712,13 +712,15 @@ the first code block in the section. Replace it with the following code block. Keep in mind that you shouldn't add =:tangle no=. -#+BEGIN_SRC emacs-lisp :tangle no - (require 'package) - (setq package-archives '( - ("elpa" . "https://elpa.gnu.org/packages/") - ("melpa" . "https://melpa.org/packages/") - )) - (package-initialize) +#+BEGIN_SRC org :tangle no + ,#+BEGIN_SRC emacs-lisp + (require 'package) + (setq package-archives '( + ("elpa" . "https://elpa.gnu.org/packages/") + ("melpa" . "https://melpa.org/packages/") + )) + (package-initialize) + ,#+END_SRC #+END_SRC This code block will initialize =package.el=. Now we need to replace use-package @@ -729,12 +731,14 @@ as it works with package.el Now, replace the second code-block in the section with the following commands. -#+BEGIN_SRC emacs-lisp :tangle no - (unless (package-installed-p 'use-package) - (package-refresh-contents) - (package-install 'use-package)) +#+BEGIN_SRC org :tangle no + ,#+BEGIN_SRC emacs-lisp + (unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) - (require 'use-package) + (require 'use-package) + ,#+END_SRC #+END_SRC There is also the final step, which is the most important one. Replacing the use-package =:straight=