Skip to content

Instantly share code, notes, and snippets.

@vindarel
Last active November 2, 2021 17:05
Show Gist options
  • Select an option

  • Save vindarel/260f53893cdbea28bc8fd46683e7d00d to your computer and use it in GitHub Desktop.

Select an option

Save vindarel/260f53893cdbea28bc8fd46683e7d00d to your computer and use it in GitHub Desktop.

Revisions

  1. vindarel revised this gist Nov 2, 2021. 1 changed file with 4 additions and 5 deletions.
    9 changes: 4 additions & 5 deletions portacle-config.el
    Original file line number Diff line number Diff line change
    @@ -13,17 +13,16 @@
    (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)


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; Other Emacs configuration possibilities.
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;; Instead of "yes" or "no", validate with "y" or "n":
    (fset 'yes-or-no-p 'y-or-n-p)
  2. vindarel revised this gist Nov 2, 2021. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions portacle-config.el
    Original file line number Diff line number Diff line change
    @@ -19,3 +19,11 @@
    ;; 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)


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; Other Emacs configuration possibilities.
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;; Instead of "yes" or "no", validate with "y" or "n":
    (fset 'yes-or-no-p 'y-or-n-p)
  3. vindarel revised this gist Nov 1, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions portacle-config.el
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    ;; 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.
  4. vindarel revised this gist Nov 1, 2021. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions portacle-config.el
    Original file line number Diff line number Diff line change
    @@ -12,3 +12,7 @@

    ;; 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)
  5. vindarel created this gist Nov 1, 2021.
    14 changes: 14 additions & 0 deletions portacle-config.el
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ;; Possible Portacle elisp configuration.


    ;; 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))

    ;; 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)