summaryrefslogtreecommitdiff
path: root/emacs.el
diff options
context:
space:
mode:
authorMarek Paśnikowski <marekpasnikowski@protonmail.com>2022-11-22 09:28:04 +0100
committerMarek Paśnikowski <marekpasnikowski@protonmail.com>2022-11-22 09:28:04 +0100
commit747d435a05b46439a075e35e93b2511cf4fdb432 (patch)
tree8edd8b3010c3259f157d9bfd18c25fdb1ae2f65c /emacs.el
parent49bdc2aaec8ae3116ca7fce73abc07b4440bb426 (diff)
Enable Literate Programming
Diffstat (limited to 'emacs.el')
-rw-r--r--emacs.el36
1 files changed, 23 insertions, 13 deletions
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 )))