Browse Source

A few more small emacs options

Simon Watson 3 years ago
parent
commit
f71e8eeab2
1 changed files with 22 additions and 5 deletions
  1. 22 5
      emacs/.emacs-mac

+ 22 - 5
emacs/.emacs-mac

@@ -1,6 +1,10 @@
+;;; Slime/etc
 (setq inferior-lisp-program "/opt/homebrew/bin/sbcl")
 (load (expand-file-name "~/.local/opt/quicklisp/slime-helper.el"))
-(slime-setup '(slime-fancy slime-company))
+
+;;; erc config
+(setq erc-nick "speskk")
+
 (defvar bootstrap-version)
 (let ((bootstrap-file
        (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
@@ -31,9 +35,21 @@
 (straight-use-package 'markdown-mode)
 (straight-use-package 'moe-theme)
 (straight-use-package 'ample-theme)
+(straight-use-package 'slime)
+(straight-use-package 'ac-slime)
 
-(require 'markdown-mode)
+(require 'auto-complete)
+(global-auto-complete-mode t)
+
+(require 'slime)
+(require 'ac-slime)
+(slime-setup '(slime-fancy ac-slime))
+(add-hook 'slime-mode-hook 'set-up-slime-ac)
+(add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
+(eval-after-load "auto-complete"
+  '(add-to-list 'ac-modes 'slime-repl-mode))
 
+(require 'markdown-mode)
 
 (require 'powerline)
 (powerline-default-theme)
@@ -44,9 +60,6 @@
 (require 'dashboard)
 (dashboard-setup-startup-hook)
 
-(require 'auto-complete)
-(global-auto-complete-mode t)
-
 (require 'all-the-icons)
 
 (require 'sublimity-scroll)
@@ -69,6 +82,10 @@
       `((".*" ,temporary-file-directory t)))
 
 (load-theme 'moe-light t)
+
+(display-time-mode t)
+(display-line-numbers-mode t)
+
 (custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.