Change emacs auto save dir
This commit is contained in:
parent
84070523a2
commit
2ffa99b856
1 changed files with 7 additions and 44 deletions
51
debian/home/.emacs
vendored
51
debian/home/.emacs
vendored
|
@ -5,6 +5,13 @@
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(add-to-list 'default-frame-alist '(font . "monospace-14"))
|
(add-to-list 'default-frame-alist '(font . "monospace-14"))
|
||||||
|
|
||||||
|
(unless (file-exists-p "~/.auto-save")
|
||||||
|
(make-directory "~/.auto-save"))
|
||||||
|
(defvar autosave-dir (concat "~/.auto-save" "/")) ; Auto save path
|
||||||
|
(make-directory autosave-dir t)
|
||||||
|
(setq auto-save-file-name-transforms
|
||||||
|
`(("\\(?:[^/]*/\\)*\\(.*\\)" ,(concat autosave-dir "\\1") t)))
|
||||||
|
|
||||||
(setq package-enable-at-startup nil)
|
(setq package-enable-at-startup nil)
|
||||||
(setq visible-bell nil)
|
(setq visible-bell nil)
|
||||||
(setq ring-bell-function 'ignore)
|
(setq ring-bell-function 'ignore)
|
||||||
|
@ -94,50 +101,6 @@
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:init (global-flycheck-mode))
|
:init (global-flycheck-mode))
|
||||||
|
|
||||||
(use-package lsp-mode
|
|
||||||
;; Optional - enable lsp-mode automatically in scala files
|
|
||||||
;; You could also swap out lsp for lsp-deffered in order to defer loading
|
|
||||||
:hook (scala-mode . lsp)
|
|
||||||
(lsp-mode . lsp-lens-mode)
|
|
||||||
:config
|
|
||||||
;; Uncomment following section if you would like to tune lsp-mode performance according to
|
|
||||||
;; https://emacs-lsp.github.io/lsp-mode/page/performance/
|
|
||||||
;; (setq gc-cons-threshold 100000000) ;; 100mb
|
|
||||||
;; (setq read-process-output-max (* 1024 1024)) ;; 1mb
|
|
||||||
;; (setq lsp-idle-delay 0.500)
|
|
||||||
;; (setq lsp-log-io nil)
|
|
||||||
;; (setq lsp-completion-provider :capf)
|
|
||||||
(setq lsp-prefer-flymake nil))
|
|
||||||
|
|
||||||
;; Add metals backend for lsp-mode
|
|
||||||
(use-package lsp-metals)
|
|
||||||
|
|
||||||
;; Enable nice rendering of documentation on hover
|
|
||||||
;; Warning: on some systems this package can reduce your emacs responsiveness significally.
|
|
||||||
;; (See: https://emacs-lsp.github.io/lsp-mode/page/performance/)
|
|
||||||
;; In that case you have to not only disable this but also remove from the packages since
|
|
||||||
;; lsp-mode can activate it automatically.
|
|
||||||
(use-package lsp-ui)
|
|
||||||
|
|
||||||
;; Use company-capf as a completion provider.
|
|
||||||
;;
|
|
||||||
;; To Company-lsp users:
|
|
||||||
;; Company-lsp is no longer maintained and has been removed from MELPA.
|
|
||||||
;; Please migrate to company-capf.
|
|
||||||
(use-package company
|
|
||||||
:hook (scala-mode . company-mode)
|
|
||||||
:config
|
|
||||||
(setq lsp-completion-provider :capf))
|
|
||||||
|
|
||||||
;; Posframe is a pop-up tool that must be manually installed for dap-mode
|
|
||||||
(use-package posframe)
|
|
||||||
|
|
||||||
;; Use the Debug Adapter Protocol for running tests and debugging
|
|
||||||
(use-package dap-mode
|
|
||||||
:hook
|
|
||||||
(lsp-mode . dap-mode)
|
|
||||||
(lsp-mode . dap-ui-mode))
|
|
||||||
|
|
||||||
;;;; OCaml/Reason
|
;;;; OCaml/Reason
|
||||||
(use-package tuareg)
|
(use-package tuareg)
|
||||||
(use-package utop
|
(use-package utop
|
||||||
|
|
Loading…
Reference in a new issue