Compare commits
5
Commits
cb3119a897
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
383182c24e | ||
|
|
ff20b976ad | ||
|
|
67cb7f35e6 | ||
|
|
6527b0a274 | ||
|
|
f8936662c2 |
@@ -5,11 +5,18 @@
|
|||||||
|
|
||||||
(defun syd-agda-locate-and-load ()
|
(defun syd-agda-locate-and-load ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((agda-mode-path (executable-find "agda-mode")))
|
(if-let* ((agda-mode-path (executable-find "agda-mode"))
|
||||||
(load-file
|
(agda-path (executable-find "agda")))
|
||||||
(shell-command-to-string
|
(progn (load-file
|
||||||
(format "%s locate" agda-mode-path))))
|
(shell-command-to-string
|
||||||
(setq agda2-program-name (executable-find "agda")))
|
(format "%s locate" agda-mode-path)))
|
||||||
|
(setq agda2-program-name agda-path))
|
||||||
|
(when-let* ((mikan-path (executable-find "mikan")))
|
||||||
|
(setq agda2-program-name mikan-path)
|
||||||
|
(load-file
|
||||||
|
(let ((coding-system-for-read 'utf-8))
|
||||||
|
(shell-command-to-string
|
||||||
|
(format "%s --emacs-mode locate" mikan-path)))))))
|
||||||
|
|
||||||
(defface syd-agda2-default
|
(defface syd-agda2-default
|
||||||
`((t :font ,(font-spec :family "IBM Plex Sans" :size 17)
|
`((t :font ,(font-spec :family "IBM Plex Sans" :size 17)
|
||||||
@@ -93,7 +100,8 @@
|
|||||||
|
|
||||||
(add-to-list
|
(add-to-list
|
||||||
'auto-mode-alist
|
'auto-mode-alist
|
||||||
'("\\.lagda\\.org\\'" . agda2-mode))
|
`(,(rx ".lagda." (or "org" "md"))
|
||||||
|
. agda2-mode))
|
||||||
|
|
||||||
(with-eval-after-load 'smartparens
|
(with-eval-after-load 'smartparens
|
||||||
(sp-local-pair '(agda2-mode) "{!" "!}"))
|
(sp-local-pair '(agda2-mode) "{!" "!}"))
|
||||||
|
|||||||
@@ -50,9 +50,7 @@
|
|||||||
:custom (; Show errors in REPL, not popup buffers.
|
:custom (; Show errors in REPL, not popup buffers.
|
||||||
(haskell-interactive-popup-errors nil)
|
(haskell-interactive-popup-errors nil)
|
||||||
(haskell-process-suggest-remove-import-line t)
|
(haskell-process-suggest-remove-import-line t)
|
||||||
(haskell-process-auto-import-loaded-modules t)
|
(haskell-process-auto-import-loaded-modules t))
|
||||||
(haskell-ts-inferior-history-file
|
|
||||||
(file-name-concat syd-data-dir "haskell-ts-inferior-history")))
|
|
||||||
:general
|
:general
|
||||||
(:keymaps 'haskell-mode-map
|
(:keymaps 'haskell-mode-map
|
||||||
:states '(normal visual motion emacs insert)
|
:states '(normal visual motion emacs insert)
|
||||||
@@ -89,7 +87,9 @@
|
|||||||
:custom ((haskell-ts-font-lock-level 4)
|
:custom ((haskell-ts-font-lock-level 4)
|
||||||
(haskell-ts-ghci "ghci")
|
(haskell-ts-ghci "ghci")
|
||||||
(haskell-ts-inferior-prompt-regexp
|
(haskell-ts-inferior-prompt-regexp
|
||||||
(rx bol (or "λ> " "|> "))))
|
(rx bol (or "λ> " "|> ")))
|
||||||
|
(haskell-ts-inferior-history-file
|
||||||
|
(file-name-concat syd-data-dir "haskell-ts-inferior-history")))
|
||||||
:general
|
:general
|
||||||
(:keymaps 'haskell-ts-mode-map
|
(:keymaps 'haskell-ts-mode-map
|
||||||
:states '(normal motion)
|
:states '(normal motion)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ in {
|
|||||||
# Mount our NAS's 'media' share.
|
# Mount our NAS's 'media' share.
|
||||||
fileSystems."/media" = {
|
fileSystems."/media" = {
|
||||||
# DNS is seemingly unavailable to the mount service.
|
# DNS is seemingly unavailable to the mount service.
|
||||||
device = "//10.0.0.203/media";
|
device = "//192.168.68.62/media";
|
||||||
mountPoint = "/media";
|
mountPoint = "/media";
|
||||||
fsType = "cifs";
|
fsType = "cifs";
|
||||||
options = [
|
options = [
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
config = {
|
config = {
|
||||||
networking.hosts = {
|
networking.hosts = {
|
||||||
"100.95.131.43" = [ "whitepc" ];
|
"100.95.131.43" = [ "whitepc" ];
|
||||||
"10.0.0.109" = [ "guix-rebound" "sydpc" ];
|
"192.168.68.66" = [ "guix-rebound" "sydpc" ];
|
||||||
"10.0.0.248" = [ "deertopia" ];
|
"192.168.68.79" = [ "deertopia" ];
|
||||||
"10.0.0.218" = [ "fruitbook" ];
|
"192.168.68.55" = [ "fruitbook" ];
|
||||||
"10.0.0.203" = [ "buffalo-nas" ];
|
"192.168.68.62" = [ "buffalo-nas" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user