few macos fixes
This commit is contained in:
parent
7e831cdb44
commit
121ae1b4b0
@ -1,4 +1,8 @@
|
||||
#+TITLE: Emacs Configuration
|
||||
* TMP
|
||||
#+begin_src emacs-lisp
|
||||
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
|
||||
#+end_src
|
||||
* Literate emacs configuration
|
||||
|
||||
I can never rembember what various configs do. Jumping on this literate emacs
|
||||
@ -20,6 +24,8 @@ shell.
|
||||
(let ((paths
|
||||
'(
|
||||
"/usr/local/bin"
|
||||
"/usr/local/go/bin"
|
||||
"/usr/local/MacGPG2/bin"
|
||||
"/usr/local/jdk-11/bin"
|
||||
"/usr/ports/infrastructure/bin"
|
||||
"~/bin"
|
||||
@ -100,6 +106,12 @@ If we are on OpenBSD, fill the scratch buffer with fortune \o/.
|
||||
(global-font-lock-mode 1)
|
||||
#+end_src
|
||||
|
||||
**** No GNU ls here
|
||||
#+begin_src emacs-lisp
|
||||
(setq ls-lisp-use-insert-directory-program nil)
|
||||
(require 'ls-lisp)
|
||||
#+end_src
|
||||
|
||||
*** Behavior
|
||||
|
||||
Switch various defaults to be more comfortable for myself.
|
||||
@ -258,14 +270,14 @@ This lets one select a ~struct~ or similar and auto add the ~`json:"NAME"`~ bits
|
||||
This allows for things like ~gofmt~ and auto adding / removing of imports.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package go-mode
|
||||
:after (go-add-tags lsp-mode)
|
||||
:bind
|
||||
("C-c t" . go-add-tags))
|
||||
(defun lsp-go-install-save-hooks ()
|
||||
(add-hook 'before-save-hook #'lsp-format-buffer t t)
|
||||
(add-hook 'before-save-hook #'lsp-organize-imports t t))
|
||||
(add-hook 'go-mode-hook #'lsp-go-install-save-hooks)
|
||||
(use-package go-mode
|
||||
:after (go-add-tags lsp-mode)
|
||||
:bind
|
||||
("C-c t" . go-add-tags))
|
||||
(defun lsp-go-install-save-hooks ()
|
||||
(add-hook 'before-save-hook #'lsp-format-buffer t t)
|
||||
(add-hook 'before-save-hook #'lsp-organize-imports t t))
|
||||
(add-hook 'go-mode-hook #'lsp-go-install-save-hooks)
|
||||
#+end_src
|
||||
|
||||
*** go-eldoc
|
||||
|
Loading…
Reference in New Issue
Block a user