Hash :
4eb85f7e
Author :
Thomas de Grivel
Date :
2022-01-13T09:22:26
emacs conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
(show-paren-mode)
;; Packages
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(setq package-selected-packages
'(dart-mode lsp-mode lsp-dart lsp-treemacs flycheck company
lsp-ui hover web-mode alchemist elixir-mode))
(when (cl-find-if-not #'package-installed-p package-selected-packages)
(package-refresh-contents)
(mapc #'package-install package-selected-packages))
;; Adams
(add-to-list 'auto-mode-alist '("\\.adams\\'" . lisp-mode))
;; Dart
(add-hook 'dart-mode-hook 'lsp)
(setq gc-cons-threshold (* 100 1024 1024)
read-process-output-max (* 1024 1024)
company-minimum-prefix-length 1
lsp-lens-enable t
lsp-signature-auto-activate nil)
;; Erlang
(add-to-list 'load-path "/opt/homebrew/lib/erlang/lib/tools-3.5.2/emacs")
(setq erlang-root-dir "/opt/homebrew/lib/erlang")
(setq exec-path (cons "/opt/homebrew/lib/erlang/bin" exec-path))
(require 'erlang-start)
;; Ruby
(setq ruby-insert-encoding-magic-comment nil)
;; slime
(add-to-list 'load-path "~/common-lisp/slime/slime/")
(require 'slime-autoloads)
(add-to-list 'slime-contribs 'slime-fancy)
(setq inferior-lisp-program
"/opt/homebrew/bin/sbcl")
(setq common-lisp-hyperspec-root
"/opt/homebrew/share/doc/hyperspec/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"))
(setq slime-net-coding-system
'utf-8-unix)
;; web-mode
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.eex\\'" . web-mode))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(blink-cursor-mode nil)
'(c-basic-offset 2)
'(column-number-mode t)
'(ido-mode 'both nil (ido))
'(indent-tabs-mode nil)
'(inhibit-startup-screen t)
'(js-indent-level 2)
'(menu-bar-mode nil)
'(package-selected-packages '(haml-mode alchemist elixir-mode json-mode web-mode))
'(web-mode-attr-indent-offset nil)
'(web-mode-code-indent-offset 2)
'(web-mode-markup-indent-offset 2))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :extend nil :stipple nil :foreground "#000" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 100 :width normal :foundry "courier" :family "adobe"))))
'(fringe ((t (:background "white"))))
'(mode-line ((t (:background "gray" :foreground "black"))))
'(mode-line-inactive ((t (:inherit mode-line :background "grey" :foreground "gray30"))))
'(window-divider ((t (:foreground "gray"))))
'(window-divider-first-pixel ((t (:foreground "blue"))))
'(window-divider-last-pixel ((t (:foreground "gray")))))