Ottimizzazione del tempo di bootstrap di Emacs

This commit is contained in:
Fabio Scotto di Santolo
2019-12-13 19:24:02 +01:00
parent 67318219ca
commit 880f599ba6
7 changed files with 27 additions and 13 deletions

8
.emacs.rc/alchemist.el Normal file
View File

@@ -0,0 +1,8 @@
(setq alchemist-mix-command "/usr/bin/mix")
(setq alchemist-iex-program-name "/usr/bin/iex") ;; default: iex
(setq alchemist-execute-command "/usr/bin/elixir") ;; default: elixir
(setq alchemist-compile-command "/usr/bin/elixirc") ;; default: elixirc
(setq alchemist-test-display-compilation-output t)
(setq alchemist-hooks-compile-on-save t)

View File

@@ -1,5 +1,3 @@
(package-initialize)
(require 'package)
;; Install use-package if not already installed
@@ -30,6 +28,7 @@
;; Enable nice rendering of diagnostincs like compile errors.
(use-package flycheck
:init (global-flycheck-mode))
(setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
(use-package lsp-mode
;; Optional - enable lsp-mode automatically in scala files

View File

@@ -8,13 +8,13 @@
tab-width 4
indent-tabs-mode nil
compilation-scroll-output t
default-input-method "russian-computer"
;; default-input-method "russian-computer"
visible-bell (equal system-type 'windows-nt))
(defun rc/colorize-compilation-buffer ()
(toggle-read-only)
(read-only-mode)
(ansi-color-apply-on-region compilation-filter-start (point))
(toggle-read-only))
(read-only-mode))
(add-hook 'compilation-filter-hook 'rc/colorize-compilation-buffer)
(defun rc/buffer-file-name ()
@@ -133,4 +133,13 @@ This command does the inverse of `fill-paragraph'."
(setq confirm-kill-emacs 'y-or-n-p)
(add-hook 'emacs-startup-hook
(lambda ()
(message "Emacs ready in %s with %d garbage collections."
(format "%.2f seconds"
(float-time (time-subtract after-init-time before-init-time)))
gcs-done)))
(server-start)

View File

@@ -1,5 +1,3 @@
(package-initialize)
(require 'neotree)
(global-set-key [f8] 'neotree-toggle)