From ebb18729f21416fb55e6debb6360f18d216c7dcb Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 26 Feb 2019 00:58:23 -0800 Subject: [PATCH] Add oni-common-lisp, delete oni-lisp-mode --- oni-lisp-mode.el => oni-common-lisp.el | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) rename oni-lisp-mode.el => oni-common-lisp.el (66%) diff --git a/oni-lisp-mode.el b/oni-common-lisp.el similarity index 66% rename from oni-lisp-mode.el rename to oni-common-lisp.el index 8f3df19..2430635 100644 --- a/oni-lisp-mode.el +++ b/oni-common-lisp.el @@ -1,11 +1,11 @@ -;;; oni-lisp-mode.el --- Lisp-mode configuration -*- lexical-binding: t; -*- +;;; oni-common-lisp.el --- Common Lisp configuration -*- lexical-binding: t; -*- ;; Copyright (C) 2017 Tom Willemse ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190213225457 -;; Package-Requires: (oni-company oni-flycheck paredit rainbow-delimiters) +;; Version: 20190226005649 +;; Package-Requires: (oni-company oni-flycheck paredit rainbow-delimiters slime slime-company) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ ;;; Commentary: -;; Configuration for `lisp-mode'. Enables the following minor modes: +;; Configuration for Common Lisp programming. Enables the following minor modes: ;; - `company-mode': For auto-completion. ;; - `flycheck-mode': For syntax checking. @@ -31,12 +31,22 @@ ;;; Code: +(require 'slime) + +(setq slime-lisp-implementations + '((sbcl ("sbcl" "--noinform") :coding-system utf-8-unix) + (clisp ("clisp") :coding-system utf-8-unix))) + +(setq slime-default-lisp 'sbcl) + +(slime-setup '(slime-fancy slime-company)) + (add-hook 'lisp-mode-hook 'paredit-mode) (add-hook 'lisp-mode-hook 'rainbow-delimiters-mode) (add-hook 'lisp-mode-hook 'flycheck-mode) (add-hook 'lisp-mode-hook 'company-mode) -;;;###autoload (with-eval-after-load 'lisp-mode (require 'oni-lisp-mode)) +;;;###autoload (with-eval-after-load 'lisp-mode (require 'oni-common-lisp)) -(provide 'oni-lisp-mode) -;;; oni-lisp-mode.el ends here +(provide 'oni-common-lisp) +;;; oni-common-lisp.el ends here