From b3f78e588b55e8676997377b14868689986b12a9 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 26 Jul 2021 01:39:14 +0100 Subject: (Emacs|Scripts)~minor edits (Emacs)~changed some descriptions, formatting, edits of assigned functions (Scripts)~allow psearch to use all arguments supplied rather than just the first one (pacman -Ss actually greedily consumes all arguments given as part of the search) --- Emacs/.config/emacs/config.org | 16 ++++++++++------ Shell/.zshrc | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index ec1945a..a67ee2a 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2498,14 +2498,17 @@ mouthful). It's quite a beautiful language and really learning it will change the way you think about programming. Here I configure the REPL for Haskell via the -=interactive-haskell-mode= as well. +=haskell-interactive-mode= as well. #+begin_src emacs-lisp (use-package haskell-mode :hook (haskell-mode-hook . haskell-indentation-mode) (haskell-mode-hook . interactive-haskell-mode) :custom + (haskell-interactive-prompt "[λ] ") + (haskell-interactive-prompt-cont "{λ} ") (haskell-interactive-popup-errors nil) + (haskell-stylish-on-save nil) (haskell-process-type 'stack-ghci) :general (leader @@ -2518,7 +2521,7 @@ Here I configure the REPL for Haskell via the (+dx/create-toggle-function +shell/toggle-haskell-repl "*haskell*" - haskell-process-restart)) + haskell-interactive-bring)) #+end_src ** Python Basic, haven't used python in this configuration yet. @@ -2555,15 +2558,16 @@ Setup for python shell, including a toggle option :commands +python/toggle-repl :general (leader - "tp" #'+python/toggle-repl) + "tp" #'+shell/python-toggle-repl) :display ("\\*Python\\*" (display-buffer-at-bottom) (window-height . 0.25)) :config - (+dx/create-toggle-function +python/toggle-repl - "*Python*" - run-python)) + (+dx/create-toggle-function + +shell/python-toggle-repl + "*Python*" + run-python)) #+end_src ** YAML YAML is a data language which is useful for config files. diff --git a/Shell/.zshrc b/Shell/.zshrc index 117af9a..15df5f7 100644 --- a/Shell/.zshrc +++ b/Shell/.zshrc @@ -28,7 +28,7 @@ ef () { } psearch () { - pacman -Ss $1 | less + pacman -Ss $@ | less } ### Git aliases -- cgit v1.2.3-13-gbd6f