Skip to content

Instantly share code, notes, and snippets.

@vindarel
Last active November 2, 2021 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vindarel/260f53893cdbea28bc8fd46683e7d00d to your computer and use it in GitHub Desktop.
Save vindarel/260f53893cdbea28bc8fd46683e7d00d to your computer and use it in GitHub Desktop.
;; Possible Portacle elisp configuration.
;;
;; this is to be saved under <your Portacle directory>/config/user.el
;; Disable paredit-mode, automatically adding parenthesis and other pair delimiters.
(remove-hook 'slime-repl-mode-hook 'enable-paredit-mode) ; disable paredit-mode for the REPL
(remove-hook 'lisp-mode-hook 'enable-paredit-mode) ; disable paredit-mode for lisp files
;; Disable company-mode, pop-up suggestions.
(global-company-mode 0)
(company-quickhelp-mode 0)
(setq slime-contribs (remove 'slime-company slime-contribs))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Other Emacs configuration possibilities.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Use C-c C-z from the REPL too to go to the other window (which is in lisp mode or not).
(define-key slime-repl-mode-map (kbd "C-c C-z") 'other-window)
;; Add a shortcut in Slime mode to eval the last expression and print its result under it.
;; note: there are of course elisp packages to do more, like showing the result in an overlay.
(define-key slime-mode-map (kbd "C-c J") 'slime-eval-print-last-expression)
;; Instead of "yes" or "no", validate with "y" or "n":
(fset 'yes-or-no-p 'y-or-n-p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment