(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.
|
change the way you think about programming.
|
||||||
|
|
||||||
Here I configure the REPL for Haskell via the
|
Here I configure the REPL for Haskell via the
|
||||||
=interactive-haskell-mode= as well.
|
=haskell-interactive-mode= as well.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package haskell-mode
|
(use-package haskell-mode
|
||||||
:hook
|
:hook
|
||||||
(haskell-mode-hook . haskell-indentation-mode)
|
(haskell-mode-hook . haskell-indentation-mode)
|
||||||
(haskell-mode-hook . interactive-haskell-mode)
|
(haskell-mode-hook . interactive-haskell-mode)
|
||||||
:custom
|
:custom
|
||||||
|
(haskell-interactive-prompt "[λ] ")
|
||||||
|
(haskell-interactive-prompt-cont "{λ} ")
|
||||||
(haskell-interactive-popup-errors nil)
|
(haskell-interactive-popup-errors nil)
|
||||||
|
(haskell-stylish-on-save nil)
|
||||||
(haskell-process-type 'stack-ghci)
|
(haskell-process-type 'stack-ghci)
|
||||||
:general
|
:general
|
||||||
(leader
|
(leader
|
||||||
@@ -2518,7 +2521,7 @@ Here I configure the REPL for Haskell via the
|
|||||||
(+dx/create-toggle-function
|
(+dx/create-toggle-function
|
||||||
+shell/toggle-haskell-repl
|
+shell/toggle-haskell-repl
|
||||||
"*haskell*"
|
"*haskell*"
|
||||||
haskell-process-restart))
|
haskell-interactive-bring))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Python
|
** Python
|
||||||
Basic, haven't used python in this configuration yet.
|
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
|
:commands +python/toggle-repl
|
||||||
:general
|
:general
|
||||||
(leader
|
(leader
|
||||||
"tp" #'+python/toggle-repl)
|
"tp" #'+shell/python-toggle-repl)
|
||||||
:display
|
:display
|
||||||
("\\*Python\\*"
|
("\\*Python\\*"
|
||||||
(display-buffer-at-bottom)
|
(display-buffer-at-bottom)
|
||||||
(window-height . 0.25))
|
(window-height . 0.25))
|
||||||
:config
|
:config
|
||||||
(+dx/create-toggle-function +python/toggle-repl
|
(+dx/create-toggle-function
|
||||||
"*Python*"
|
+shell/python-toggle-repl
|
||||||
run-python))
|
"*Python*"
|
||||||
|
run-python))
|
||||||
#+end_src
|
#+end_src
|
||||||
** YAML
|
** YAML
|
||||||
YAML is a data language which is useful for config files.
|
YAML is a data language which is useful for config files.
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ ef () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
psearch () {
|
psearch () {
|
||||||
pacman -Ss $1 | less
|
pacman -Ss $@ | less
|
||||||
}
|
}
|
||||||
|
|
||||||
### Git aliases
|
### Git aliases
|
||||||
|
|||||||
Reference in New Issue
Block a user