wehgashasg;hasgr]
This commit is contained in:
parent
0181011b5b
commit
3964f717d0
|
@ -196,6 +196,7 @@
|
||||||
elisp
|
elisp
|
||||||
go
|
go
|
||||||
go-mod
|
go-mod
|
||||||
|
haskell
|
||||||
java
|
java
|
||||||
js
|
js
|
||||||
json
|
json
|
||||||
|
@ -235,6 +236,14 @@
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(add-hook 'prog-mode-hook 'eglot-ensure)
|
(add-hook 'prog-mode-hook 'eglot-ensure)
|
||||||
|
(use-package haskell-mode :ensure t
|
||||||
|
:hook (haskell-mode . eglot-ensure))
|
||||||
|
|
||||||
|
(setq-default eglot-workspace-configuration
|
||||||
|
'((haskell
|
||||||
|
(plugin
|
||||||
|
(stan
|
||||||
|
(globalOn . :json-false)))))) ;; disable stan
|
||||||
|
|
||||||
(defun my/eglot-format-buffer-on-save ()
|
(defun my/eglot-format-buffer-on-save ()
|
||||||
"Format the current buffer if Eglot is active."
|
"Format the current buffer if Eglot is active."
|
||||||
|
@ -401,10 +410,10 @@
|
||||||
(defvar my/tab-left (powerline-wave-right 'tab-line nil my/tab-height))
|
(defvar my/tab-left (powerline-wave-right 'tab-line nil my/tab-height))
|
||||||
(defvar my/tab-right (powerline-wave-left nil 'tab-line my/tab-height))
|
(defvar my/tab-right (powerline-wave-left nil 'tab-line my/tab-height))
|
||||||
|
|
||||||
(defun my/tab-line-tab-name-buffer (buffer &optional _buffers)
|
(defun my/tab-line-tab-name-buffer (buffer &optional _buffers)
|
||||||
(powerline-render (list my/tab-left
|
(powerline-render (list my/tab-left
|
||||||
(format "%s" (buffer-name buffer))
|
(format "%s" (buffer-name buffer))
|
||||||
my/tab-right)))
|
my/tab-right)))
|
||||||
|
|
||||||
(setq tab-line-tab-name-function #'my/tab-line-tab-name-buffer)
|
(setq tab-line-tab-name-function #'my/tab-line-tab-name-buffer)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue