diff options
author | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-01-14 11:17:11 +0100 |
---|---|---|
committer | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-01-14 11:17:11 +0100 |
commit | d9b08bbe376844b5c899cffe7b2565de1999e9f1 (patch) | |
tree | 8edd8b3010c3259f157d9bfd18c25fdb1ae2f65c | |
parent | 94d383f7892d9076f5134a279e65264a1c0e0eeb (diff) |
Enable Literate Programming
-rw-r--r-- | emacs.el | 36 |
1 files changed, 23 insertions, 13 deletions
@@ -22,17 +22,19 @@ ;;; Jeko's suggested configuration ;; Highlight the pair of delimiters under the cursor -(setq-default show-paren-mode - 1) -(setq-default show-paren-delay - 0) +(setq-default + show-paren-mode 1 + show-paren-delay 0) ;; Edit the code based on the S-expression structure (require 'paredit) -(autoload 'enable-paredit-mode +(autoload + 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t) +(add-hook 'emacs-lisp-mode-hook + #'enable-paredit-mode) (add-hook 'scheme-mode-hook #'enable-paredit-mode) @@ -52,17 +54,25 @@ ;;; https://guix.gnu.org/manual/en/html_node/The-Perfect-Setup.html ;;; Copyright Information -(setq-default user-full-name - "Marek Paśnikowski") -(setq-default user-mail-address - "marekpasnikowski@protonmail.com") +(setq-default + user-full-name "Marek Paśnikowski" + user-mail-address "marekpasnikowski@protonmail.com") ;;; Startup Screen Inhibition (setq-default inhibit-startup-screen t) ;; Enable the column-80 line -(setq-default global-display-fill-column-indicator-mode - 1) -(setq-default display-fill-column-indicator-column - 79) +(setq-default + global-display-fill-column-indicator-mode 1 + display-fill-column-indicator-column 79) + +;; Prepare Literate Programming +(setq-default + org-confirm-babel-evaluate nil + org-src-fontify-natively t + org-src-tab-acts-natively t) +(org-babel-do-load-languages 'org-babel-load-languages + '((emacs-lisp . t) + (scheme . t ) + (shell . t ))) |