Skip to content

Commit

Permalink
doc: add recepies
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraveiro committed Feb 29, 2024
1 parent 08789af commit f1e29ee
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ approach. The generated web pages are available as a web site:

- https://mcraveiro.github.io/cunene/

Index to content:

- [[id:942E5349-A751-6124-855B-02887BD28B6E][Notes and comments]]
- [[id:58175204-C736-CAB4-F95B-66E153DCA708][Emacs Lisp Recipes]]

* Configuration

The configuration itself is split into a small number of self-contained files to
Expand Down
2 changes: 2 additions & 0 deletions config/development.org
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ Git clients exist, only Magit and Git itself deserve to be called porcelains.
magit-module-sections-nested nil
magit-section-initial-visibility-alist
'((modules . show) (stashes . show) (unpulled . show) (unpushed . show)))
(add-to-list 'magit-no-confirm 'stage-all-changes)
(add-to-list 'magit-no-confirm 'unstage-all-changes)
(magit-add-section-hook
'magit-status-sections-hook 'magit-insert-modules-overview 'magit-insert-merge-log)
(remove-hook 'magit-section-highlight-hook #'magit-section-highlight)
Expand Down
42 changes: 42 additions & 0 deletions doc/elisp_recepies.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
:properties:
:id: 58175204-C736-CAB4-F95B-66E153DCA708
:end:
#+title: Emacs Lisp Recipes
#+author: Marco Craveiro
#+options: <:nil c:nil todo:nil ^:nil d:nil date:nil author:nil toc:nil html-postamble:nil

Useful bits of Emacs Lisp we found over the internet.

* Compilation

** Recompile packages

To recompile all packages in a directory:

#+begin_src emacs-lisp
(byte-recompile-directory (expand-file-name "~/.emacs.d") 0)
#+end_src

As per [[https://stackoverflow.com/questions/1217180/how-do-i-byte-compile-everything-in-my-emacs-d-directory][How do I byte-compile everything in my .emacs.d directory?]]

To recompile package directory:

#+begin_src emacs-lisp
(byte-recompile-directory package-user-dir nil 'force)
#+end_src

As per [[http://sodaware.sdf.org/notes/recompiling-all-emacs-packages/][Recompiling all Emacs packages]].

To recompile vendor directory:

#+begin_src emacs-lisp
(byte-recompile-directory (expand-file-name "~/.emacs.d/vendor") 0)
#+end_src

** Check native compilation

To see if native compilation is enabled:

#+begin_src emacs-lisp
(native-comp-available-p)
#+end_src

0 comments on commit f1e29ee

Please sign in to comment.