about summary refs log blame commit diff
path: root/init/lisp-setup.el
blob: e117817e3f1c81a6d936ada98b830fc5b1772407 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                        
                        

              

                 
                                            
                                            
                                                  
 


                                      
               
                                                                         

                                            

                     
;; lisp-settings.el - settings for various Lisp dialects
;; -*- lexical-binding: t; -*-

(require 'adjust-parens)
(require 'sly)

;; All the lisps:

(add-to-list 'lisp-mode-hook #'company-mode)
(add-to-list 'lisp-mode-hook #'paredit-mode)
(add-to-list 'lisp-mode-hook #'adjust-parens-mode)

(define-key lisp-mode-map (kbd "TAB")
  #'company-indent-or-complete-common)

;; Common Lisp:
(setq inferior-lisp-program (concat (nix-store-path "sbcl") "/bin/sbcl"))

(add-to-list 'company-backends 'sly-company)

(provide 'lisp-setup)