diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 7c14604..daa3579 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -26,12 +26,11 @@ (when (not package-archive-contents) (package-refresh-contents)) - (use-package yasnippet-snippets :load-path "~/clones/yasnippet-snippets" ) -(use-package ox-latex +(use-package ox-latex :config (add-to-list 'org-latex-classes '("lettre" @@ -50,8 +49,7 @@ :ensure t :config (flycheck-grammalecte-setup) - (setq flycheck-global-modes '(not org-mode)) - ) + (setq flycheck-global-modes '(not org-mode))) (use-package diminish :ensure t) @@ -70,12 +68,13 @@ (lsp-signature-doc-lines 1) (lsp-diagnostics-provider :none) (lsp-jedi-pylsp-extra-paths []) - (lsp-keymap-prefix "C-c x") + (lsp-inlay-hint-enable t) :config (set-face-attribute 'lsp-face-highlight-textual nil :background "#666" :foreground "#ffffff" ) - :hook ((python-mode) . lsp) + :hook (((python-mode) . lsp) + (rust-mode) .lsp) :commands lsp-mode ) @@ -156,7 +155,6 @@ (setq version-control t ; (for backup files) mouse-yank-at-point t - solarized-high-contrast-mode-line t inhibit-startup-message t make-backup-files t backup-directory-alist (quote ((".*" . "~/.emacs.d/backup/"))) @@ -214,7 +212,7 @@ (yas-global-mode 1) (setq org-directory "~/Org") -(setq org-default-notes-file "~/Org/tasks.org") +(setq org-default-notes-file "~/Org/julien.org") (custom-set-variables ;; custom-set-variables was added by Custom. @@ -223,14 +221,18 @@ ;; If there is more than one, they won't work right. '(auth-source-save-behavior nil) '(c-basic-offset 4) + '(fido-mode t) '(frame-background-mode 'dark) - '(icomplete-mode t) - '(org-agenda-files '("/home/mdk/Org/tasks.org" "/home/mdk/Org/julien.org")) + '(icomplete-vertical-mode t) + '(org-agenda-files '("/home/mdk/Org/julien.org")) '(org-agenda-span 'fortnight) '(org-modules '(ol-bbdb ol-bibtex ol-docview ol-doi ol-eww ol-gnus org-habit ol-info ol-irc ol-mhe ol-rmail ol-w3m)) '(package-selected-packages - '(gnuplot-mode org-bullets rust-mode flycheck-grammalecte blacken spacemacs-theme company use-package zenburn-theme markdown-mode org po-mode yaml-mode))) + '(lorem-ipsum gnuplot-mode org-bullets rust-mode flycheck-grammalecte blacken spacemacs-theme company use-package markdown-mode org po-mode yaml-mode)) + '(send-mail-function 'mailclient-send-it)) + +(setq rust-format-on-save t) (load-theme 'spacemacs-light t) (custom-theme-set-faces @@ -252,3 +254,8 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) + + +;; For rust need : apt install rust-src rustup +;; $ rustup default stable +;; $ rustup component add rust-analyzer diff --git a/README.md b/README.md index 03dc257..00d1f1d 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,11 @@ apt install \ gnome \ jq \ keepassxc \ + lesspipe \ libpq-dev \ python-openssl \ python3-full \ + source-highlight \ tk-dev \ unifont ```