(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)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -28,7 +28,7 @@ ef () {
|
||||
}
|
||||
|
||||
psearch () {
|
||||
pacman -Ss $1 | less
|
||||
pacman -Ss $@ | less
|
||||
}
|
||||
|
||||
### Git aliases
|
||||
|
||||
Reference in New Issue
Block a user