Ottimizzazione del tempo di bootstrap di Emacs
This commit is contained in:
8
.emacs.rc/alchemist.el
Normal file
8
.emacs.rc/alchemist.el
Normal 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)
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
(package-initialize)
|
||||
|
||||
(require 'neotree)
|
||||
|
||||
(global-set-key [f8] 'neotree-toggle)
|
||||
|
||||
Reference in New Issue
Block a user