Enable packages again

This commit is contained in:
Marcus Kammer 2023-01-20 17:30:02 +01:00
parent 66d10b80da
commit bba13d61b4

View file

@ -117,24 +117,24 @@
;; (setq geiser-guile-binary "c:/msys64/mingw64/bin/guile.exe"))))
;; (use-package go-mode
;; :mode ("\\.go\\'" . go-mode)
;; :config
;; (add-hook 'before-save-hook #'gofmt-before-save)
;; (add-hook 'go-mode-hook 'eglot-ensure)
;; (defun me/go-mode-compile-command-hook ()
;; ;; if no makefile use go vet for compile command
;; (unless (or (file-exists-p "makefile")
;; (file-exists-p "Makefile"))
;; (set (make-local-variable 'compile-command)
;; (concat "go " "vet " buffer-file-name))))
;; (add-hook 'go-mode-hook 'me/go-mode-compile-command-hook)
;; (defun me/go-mode-compile-on-save ()
;; ;; compile on save hook
;; (make-local-variable 'after-save-hook)
;; (add-hook 'after-save-hook (lambda () (compile compile-command))))
;; ;; (add-hook 'go-mode-hook 'me/go-mode-compile-on-save))
;; )
(use-package go-mode
:mode ("\\.go\\'" . go-mode)
:config
(add-hook 'before-save-hook #'gofmt-before-save)
(add-hook 'go-mode-hook 'eglot-ensure)
(defun me/go-mode-compile-command-hook ()
;; if no makefile use go vet for compile command
(unless (or (file-exists-p "makefile")
(file-exists-p "Makefile"))
(set (make-local-variable 'compile-command)
(concat "go " "vet " buffer-file-name))))
(add-hook 'go-mode-hook 'me/go-mode-compile-command-hook)
(defun me/go-mode-compile-on-save ()
;; compile on save hook
(make-local-variable 'after-save-hook)
(add-hook 'after-save-hook (lambda () (compile compile-command))))
;; (add-hook 'go-mode-hook 'me/go-mode-compile-on-save))
)
(use-package web-mode
;; :hook html-mode
@ -250,14 +250,7 @@
(mastodon-instance-url "https://emacs.ch")
(mastodon-active-user "qhBidG3d"))
;; (eval-after-load "slime"
;; '(progn
;; (setq common-lisp-hyperspec-root
;; (concat "file://" (expand-file-name "~/.emacs.d/clones/lisp/HyperSpec-7-0/HyperSpec/")))
;; (setq common-lisp-hyperspec-symbol-table
;; (concat common-lisp-hyperspec-root "Data/Map_Sym.txt"))
;; (setq common-lisp-hyperspec-issuex-table
;; (concat common-lisp-hyperspec-root "Data/Map_IssX.txt"))))
(use-package kotlin-mode)
(load "bundle--irc")
(load "bundle--news")