summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs.el18
-rw-r--r--home-configuration.scm2
2 files changed, 15 insertions, 5 deletions
diff --git a/emacs.el b/emacs.el
index a5d9199..890eda1 100644
--- a/emacs.el
+++ b/emacs.el
@@ -16,10 +16,20 @@
;; https://www.emacswiki.org/emacs/ParEdit
;; Automatic Activation of ParEdit
+(require 'paredit)
(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 'emacs-lisp-mode-hook #'enable-paredit-mode)
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
-(add-hook 'ielm-mode-hook #'enable-paredit-mode)
-(add-hook 'lisp-mode-hook #'enable-paredit-mode)
+(add-hook 'ielm-mode-hook #'enable-paredit-mode)
+(add-hook 'lisp-mode-hook #'enable-paredit-mode)
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
-(add-hook 'scheme-mode-hook #'enable-paredit-mode)
+(add-hook 'scheme-mode-hook #'enable-paredit-mode)
+
+;; https://github.com/xiaohanyu/ac-geiser
+;; Geiser Configuration
+
+(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))
diff --git a/home-configuration.scm b/home-configuration.scm
index 6e00918..7b1d272 100644
--- a/home-configuration.scm
+++ b/home-configuration.scm
@@ -10,7 +10,7 @@
(packages
(map
(compose list specification->package+output)
- (list "cpupower" "dconf-editor" "emacs" "emacs-aggressive-indent" "emacs-company" "emacs-geiser" "emacs-geiser-guile" "emacs-paredit" "font-google-noto" "git" "git-lfs" "gnome-tweaks" "libreoffice" "pwgen" "seahorse" "trezor-agent")))
+ (list "cpupower" "dconf-editor" "emacs" "emacs-ac-geiser" "emacs-aggressive-indent" "emacs-company" "emacs-geiser" "emacs-geiser-guile" "emacs-paredit" "font-google-noto" "git" "git-lfs" "gnome-tweaks" "libreoffice" "pwgen" "seahorse" "trezor-agent")))
(services
(list
(service home-bash-service-type