Haskelling
This commit is contained in:
1 parent
b87c6f3921
commit
5d59b1da2c
4 files changed
+46
-27
No files matched your search
+42
-27
@@ -754,13 +754,13 @@ The Classic.
|
|||||||
|
|
||||||
(add-hook 'find-file-hook 'insert-header-guards)
|
(add-hook 'find-file-hook 'insert-header-guards)
|
||||||
#+end_src
|
#+end_src
|
||||||
*** D
|
*** COMMENT D
|
||||||
C Interop with a GC.
|
C Interop with a GC.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package d-mode
|
(use-package d-mode
|
||||||
:hook (d-mode . lsp))
|
:hook (d-mode . lsp))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Go
|
*** COMMENT Go
|
||||||
A simple C-like language with a GC.
|
A simple C-like language with a GC.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package go-mode
|
(use-package go-mode
|
||||||
@@ -780,7 +780,22 @@ A simple C-like language with a GC.
|
|||||||
:hook
|
:hook
|
||||||
(go-mode . lsp))
|
(go-mode . lsp))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** LISP
|
*** Haskell
|
||||||
|
Functionally Scottish.
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package haskell-mode
|
||||||
|
:config
|
||||||
|
(setenv "PATH" (concat (concat
|
||||||
|
(concat (expand-file-name "~/.ghcup/bin") ":")
|
||||||
|
(getenv "PATH"))))
|
||||||
|
|
||||||
|
(setq exec-path (append exec-path (list (expand-file-name "~/.ghcup/bin")))))
|
||||||
|
|
||||||
|
(use-package lsp-haskell
|
||||||
|
:hook
|
||||||
|
(haskell-mode . lsp))
|
||||||
|
#+end_src
|
||||||
|
*** COMMENT LISP
|
||||||
Programming for Programmers.
|
Programming for Programmers.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
;; (use-package slime
|
;; (use-package slime
|
||||||
@@ -803,7 +818,7 @@ Programming for Programmers.
|
|||||||
;; (with-eval-after-load 'sly
|
;; (with-eval-after-load 'sly
|
||||||
;; (load (expand-file-name "~/.roswell/helper.el")))
|
;; (load (expand-file-name "~/.roswell/helper.el")))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Lua
|
*** COMMENT Lua
|
||||||
A simple Python-like language with many implementations.
|
A simple Python-like language with many implementations.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(straight-use-package
|
(straight-use-package
|
||||||
@@ -826,7 +841,7 @@ A simple Python-like language with many implementations.
|
|||||||
(add-hook 'lua-mode-hook 'lua-abbrev-mode-off)
|
(add-hook 'lua-mode-hook 'lua-abbrev-mode-off)
|
||||||
(setq save-abbrevs nil) ;; is this still needed?
|
(setq save-abbrevs nil) ;; is this still needed?
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Vala
|
*** COMMENT Vala
|
||||||
An OOP Language for C & GLib interop.
|
An OOP Language for C & GLib interop.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package vala-mode)
|
(use-package vala-mode)
|
||||||
@@ -923,36 +938,36 @@ Use Icons from Nerd Font to add a little modern spice to Emacs.
|
|||||||
*** Set Font
|
*** Set Font
|
||||||
Set font for both Monospace and Proportional text.
|
Set font for both Monospace and Proportional text.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
;; (defvar fontconf
|
(defvar fontconf
|
||||||
;; '((font . "Aporetic Sans Mono")
|
'((font . "Aporetic Sans Mono")
|
||||||
;; (size . 13)))
|
(size . 13)))
|
||||||
|
|
||||||
;; (set-face-attribute 'variable-pitch nil
|
(set-face-attribute 'variable-pitch nil
|
||||||
;; :font (cdr (assoc 'font fontconf))
|
:font (cdr (assoc 'font fontconf))
|
||||||
;; :height (* (cdr (assoc 'size fontconf)) 10)
|
:height (* (cdr (assoc 'size fontconf)) 10)
|
||||||
;; :weight 'regular)
|
:weight 'regular)
|
||||||
|
|
||||||
;; (set-face-attribute 'fixed-pitch nil
|
(set-face-attribute 'fixed-pitch nil
|
||||||
;; :font (cdr (assoc 'font fontconf))
|
:font (cdr (assoc 'font fontconf))
|
||||||
;; :height (* (cdr (assoc 'size fontconf)) 10)
|
:height (* (cdr (assoc 'size fontconf)) 10)
|
||||||
;; :weight 'regular)
|
:weight 'regular)
|
||||||
|
|
||||||
;; (set-face-attribute 'default nil
|
(set-face-attribute 'default nil
|
||||||
;; :font (cdr (assoc 'font fontconf))
|
:font (cdr (assoc 'font fontconf))
|
||||||
;; :height (* (cdr (assoc 'size fontconf)) 10)
|
:height (* (cdr (assoc 'size fontconf)) 10)
|
||||||
;; :weight 'regular)
|
:weight 'regular)
|
||||||
|
|
||||||
|
|
||||||
;; (add-to-list 'default-frame-alist
|
(add-to-list 'default-frame-alist
|
||||||
;; `(font . ,(concat (cdr (assoc 'font fontconf)) "-" (number-to-string (cdr (assoc 'size fontconf))))))
|
`(font . ,(concat (cdr (assoc 'font fontconf)) "-" (number-to-string (cdr (assoc 'size fontconf))))))
|
||||||
|
|
||||||
;; (set-face-attribute 'font-lock-comment-face nil
|
(set-face-attribute 'font-lock-comment-face nil
|
||||||
;; :slant 'italic)
|
:slant 'italic)
|
||||||
|
|
||||||
;; (set-face-attribute 'font-lock-keyword-face nil
|
(set-face-attribute 'font-lock-keyword-face nil
|
||||||
;; :slant 'italic)
|
:slant 'italic)
|
||||||
|
|
||||||
(set-frame-font "-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1" t t)
|
;;(set-frame-font "-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1" t t)
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Ligatures
|
*** Ligatures
|
||||||
Make ligature symbols out of common function symbols.
|
Make ligature symbols out of common function symbols.
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
(setq vc-follow-symlinks t)
|
||||||
(org-babel-load-file
|
(org-babel-load-file
|
||||||
(expand-file-name
|
(expand-file-name
|
||||||
"config.org"
|
"config.org"
|
||||||
|
|||||||
@@ -78,3 +78,5 @@ add-zsh-hook precmd set_prompt
|
|||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
|
[ -f "/home/venomade/.ghcup/env" ] && . "/home/venomade/.ghcup/env" # ghcup-env
|
||||||
Reference in new issue
Block a user