From 096b0ba743ec13f6da89abe5eb89b22a4435dad7 Mon Sep 17 00:00:00 2001 From: jgrogan Date: Sun, 10 Nov 2024 11:48:52 +0000 Subject: [PATCH] Start adding some basic lisp support --- emacs/.emacs.d/modules/jg-core.el | 7 +++++++ emacs/.emacs.d/modules/jg-dev.el | 13 +++++++++++++ 2 files changed, 20 insertions(+) diff --git a/emacs/.emacs.d/modules/jg-core.el b/emacs/.emacs.d/modules/jg-core.el index d427c03..12c2b0b 100644 --- a/emacs/.emacs.d/modules/jg-core.el +++ b/emacs/.emacs.d/modules/jg-core.el @@ -10,6 +10,13 @@ (global-set-key "\C-x\C-m" 'execute-extended-command) (global-set-key "\C-c\C-m" 'execute-extended-command) +;; Allow line highlighting +(global-hl-line-mode +1) + +;; Highlight delimiter pairs +(show-paren-mode 1) +(setq show-paren-delay 0) + ;; I keep mising Cx-Cf, so make it easier (global-set-key "\C-x\f" 'find-file) diff --git a/emacs/.emacs.d/modules/jg-dev.el b/emacs/.emacs.d/modules/jg-dev.el index da01611..0772555 100644 --- a/emacs/.emacs.d/modules/jg-dev.el +++ b/emacs/.emacs.d/modules/jg-dev.el @@ -96,5 +96,18 @@ (use-package yaml-mode :ensure t) +(ac-config-default) +(require 'ac-geiser) +(add-hook 'geiser-mode-hook 'ac-geiser-setup) +(add-hook 'geiser-repl-mode-hook 'ac-geiser-setup) +;;(eval-after-load "auto-complete" +;; (add-to-list 'ac-modes' geiser-repl-mode)) + +(require 'paredit) +(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t) +(add-hook 'scheme-mode-hook #'enable-paredit-mode) + +(require 'iedit) + (provide 'jg-dev) ;;; jg-dev.el ends here