From d9b08bbe376844b5c899cffe7b2565de1999e9f1 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Sun, 14 Jan 2024 11:17:11 +0100 Subject: Enable Literate Programming --- emacs.el | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) (limited to 'emacs.el') diff --git a/emacs.el b/emacs.el index 9d564a3..414379b 100644 --- a/emacs.el +++ b/emacs.el @@ -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 ))) -- cgit v1.2.3