Commit 5e4820c795f4e951472d03892b528cc1bcfb485b

Thomas de Grivel 2024-06-19T12:23:31

.emacs: remove unused packages

diff --git a/.emacs b/.emacs
index 047ff5e..24e986d 100644
--- a/.emacs
+++ b/.emacs
@@ -6,16 +6,15 @@
 (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
 (package-initialize)
 (setq package-selected-packages
-  '(dart-mode gpt lsp-mode lsp-dart lsp-treemacs flycheck company
-    lsp-ui hover web-mode alchemist elixir-mode))
+  '(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))
 
 ;; gpt
-(require 'gpt)
-(setq gpt-openai-key "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")
-(global-set-key (kbd "C-M-g") 'gpt-dwim)
+;(require 'gpt)
+;(setq gpt-openai-key "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")
+;(global-set-key (kbd "C-M-g") 'gpt-dwim)
 
 ;;  Dart
 ;(add-hook 'dart-mode-hook 'lsp)
@@ -26,10 +25,10 @@
 ;      lsp-signature-auto-activate nil)
 
 ;;  Erlang
-(add-to-list 'load-path "/usr/local/lib/erlang25/lib/tools-3.5.3/emacs")
-(setq erlang-root-dir "/usr/local/lib/erlang25")
-(setq exec-path (cons "/usr/local/lib/erlang25/bin" exec-path))
-(require 'erlang-start)
+;(add-to-list 'load-path "/usr/local/lib/erlang25/lib/tools-3.5.3/emacs")
+;(setq erlang-root-dir "/usr/local/lib/erlang25")
+;(setq exec-path (cons "/usr/local/lib/erlang25/bin" exec-path))
+;(require 'erlang-start)
 
 ;;  Ruby
 (setq ruby-insert-encoding-magic-comment nil)
@@ -49,6 +48,10 @@
 (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
 (add-to-list 'auto-mode-alist '("\\.eex\\'" . web-mode))
 
+;;  c3
+(add-to-list 'auto-mode-alist '("\\.c3\\'" . elixir-mode))
+(add-to-list 'auto-mode-alist '("\\.facts\\'" . elixir-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.