diff --git a/.gitignore b/.gitignore index 27bd4f8bbf3441f561eb076636e1629ec424f0c5..084db93dd11650ed2a1e88e4cc6016e1093097c1 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ auto-save-list /tramp /Tutoriel.pyg /_minted-Tutoriel/ +/custom.el diff --git a/.init-custom.el b/.init-custom.el new file mode 100644 index 0000000000000000000000000000000000000000..51fd01dd1bffe0b7a1da3c50ab804d8d29e67aae --- /dev/null +++ b/.init-custom.el @@ -0,0 +1,37 @@ +;;; .init-custom --- Customisation initlale +;;; Commentary: +;;; +;;; NE PAS EDITER CE FICHIER +;;; CUSTOMISATION INITIALE DES VARIABLES POUR LA CONFIG +;;; +;;; CHANGER LES VALEURS ICI N'AURA PAS D'EFFET POUR QUE DES +;;; CHANGEMENTS AIENT UN EFFET IL FAUT SUPPRIMER LE FICHIER +;;; "custom.el" CE QUI N'EST GENERALEMENT PAS RECOMMANDÉ +;;; +;;; Code: + +(custom-set-variables + '(TeX-command-extra-options "-synctex=1") + '(all-the-icons-ivy-buffer-commands (quote (ivy-switch-buffer-other-window ivy-switch-buffer))) + '(display-line-numbers-widen t) + '(elpy-rpc-backend "jedi" t) + '(hydra-hint-display-type (quote posframe)) + '(irony-cdb-search-directory-list (quote ("." "build"))) + '(ispell-dictionary "american") + '(org-confirm-babel-evaluate nil) + '(org-default-notes-file (concat org-directory "/notes.org")) + '(org-export-html-postamble nil) + '(org-hide-leading-stars t) + '(org-latex-listings (quote minted)) + '(org-src-fontify-natively t) + '(org-startup-folded (quote overview)) + '(org-startup-indented t) + '(package-selected-packages + (quote + (better-shell flycheck-irony tabbar cmake-font-lock alect-theme zero-dark-theme autumn-light-theme solarized-dark-theme misterioso misterioso-theme zenburn sourcerer-theme flycheck-pos-tip flycheck-clojure ox-reveal posframe processing-snippets processing-mode rg deadgrep flycheck-rust cargo racer yasnippet-classic-snippets rustic lsp-rust lsp-java company-lsp lsp-ui lsp-mode lsp yasnippet-snippets counsel-spotify exec-path-from-shell easy-kill auto-yasnippet org-pdfview pdf-tools atomic-chrome mingus simple-mpc pcre2el ag wgrep-ag wgrep haskell-mode aggressive-indent prodigy origami dumb-jump cider ggtags circe-notifications circe org-gcal mu4e-alert git-timemachine git-gutter magit hydra default-text-scale smartparens projectile auctex tern-auto-complete tern js2-refactor ac-js2 js2-mode emmet-mode web-mode iedit expand-region multiple-cursors hungry-delete beacon undo-tree virtualenvwrapper elpy flycheck tao-theme poet-theme faff-theme zerodark-theme alect-themes moe-theme base16-theme zenburn-theme color-theme-modern company-jedi irony-eldoc company-irony company counsel ace-window htmlize noflet org-bullets which-key try use-package))) + '(sp-escape-quotes-after-insert nil)) + +(custom-set-faces + '(aw-leading-char-face ((((class color) (min-colors 16777215)) (:foreground "#fb4933" :background "#282828" :height 4.0)) (((class color) (min-colors 255)) (:foreground "#d75f5f" :background "#262626" :height 4.0))))) + +;;; .init-custom.el ends here diff --git a/init.el b/init.el index 2d21b13cea14b96f0d5721beb5db21a150b0d199..fd1ec544302a478f2d3c7d3f162f9b4eba406a5a 100644 --- a/init.el +++ b/init.el @@ -40,37 +40,17 @@ (emacs-lisp-mode-hook . 'enable-auto-async-byte-compile-mode)) (org-babel-load-file (expand-file-name "~/.emacs.d/Configuration.org")) -(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. - '(TeX-command-extra-options "-synctex=1") - '(all-the-icons-ivy-buffer-commands (quote (ivy-switch-buffer-other-window ivy-switch-buffer))) - '(display-line-numbers-widen t) - '(elpy-rpc-backend "jedi" t) - '(hydra-hint-display-type (quote posframe)) - '(irony-cdb-search-directory-list (quote ("." "build"))) - '(ispell-dictionary "american") - '(org-confirm-babel-evaluate nil) - '(org-default-notes-file (concat org-directory "/notes.org")) - '(org-export-html-postamble nil) - '(org-hide-leading-stars t) - '(org-latex-listings (quote minted)) - '(org-src-fontify-natively t) - '(org-startup-folded (quote overview)) - '(org-startup-indented t) - '(package-selected-packages - (quote - (better-shell flycheck-irony tabbar cmake-font-lock alect-theme zero-dark-theme autumn-light-theme solarized-dark-theme misterioso misterioso-theme zenburn sourcerer-theme flycheck-pos-tip flycheck-clojure ox-reveal posframe processing-snippets processing-mode rg deadgrep flycheck-rust cargo racer yasnippet-classic-snippets rustic lsp-rust lsp-java company-lsp lsp-ui lsp-mode lsp yasnippet-snippets counsel-spotify exec-path-from-shell easy-kill auto-yasnippet org-pdfview pdf-tools atomic-chrome mingus simple-mpc pcre2el ag wgrep-ag wgrep haskell-mode aggressive-indent prodigy origami dumb-jump cider ggtags circe-notifications circe org-gcal mu4e-alert git-timemachine git-gutter magit hydra default-text-scale smartparens projectile auctex tern-auto-complete tern js2-refactor ac-js2 js2-mode emmet-mode web-mode iedit expand-region multiple-cursors hungry-delete beacon undo-tree virtualenvwrapper elpy flycheck tao-theme poet-theme faff-theme zerodark-theme alect-themes moe-theme base16-theme zenburn-theme color-theme-modern company-jedi irony-eldoc company-irony company counsel ace-window htmlize noflet org-bullets which-key try use-package))) - '(sp-escape-quotes-after-insert nil)) -(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. - '(aw-leading-char-face ((((class color) (min-colors 16777215)) (:foreground "#fb4933" :background "#282828" :height 4.0)) (((class color) (min-colors 255)) (:foreground "#d75f5f" :background "#262626" :height 4.0))))) +;;; Ajout de configuration personnelle +(setq custom-file "~/.emacs.d/custom.el") + +;;; Charge la configuration et éventuellement la sauve si le fichier +;;; de customization n'existe pas +(if (file-exists-p "~/.emacs.d/custom.el") + (load-file "~/.emacs.d/custom.el") + ;; else + (load-file "~/.emacs.d/.init-custom.el") + (customize-save-customized)) ;;; Local Variables: ;;; byte-compile-warnings: (not free-vars)