This commit is contained in:
Julien Palard 2023-04-17 12:05:46 +02:00
parent 25c9e538b1
commit 20d1e8d266
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 39 additions and 17 deletions

View File

@ -15,8 +15,7 @@
(require 'use-package) (require 'use-package)
(require 'package) (require 'package)
(package-initialize) (package-initialize)
(server-mode) (server-start)
(setq exec-path (append exec-path '("/home/mdk/.local/bin"))) (setq exec-path (append exec-path '("/home/mdk/.local/bin")))
(setenv "PATH" ; This is so blacken-mode can find black in ~/.local/bin/ (setenv "PATH" ; This is so blacken-mode can find black in ~/.local/bin/
@ -33,11 +32,28 @@
(when (not package-archive-contents) (when (not package-archive-contents)
(package-refresh-contents)) (package-refresh-contents))
(use-package yasnippet-snippets
:load-path "~/clones/yasnippet-snippets"
)
(use-package ido (use-package ido
:ensure t :ensure t
:init :init
(ido-mode t)) (ido-mode t))
(use-package ox-latex
:config
(add-to-list 'org-latex-classes
'("lettre"
"\\documentclass[french,a4paper]{lettre}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
)
(use-package direnv (use-package direnv
:ensure t :ensure t
:config :config
@ -106,12 +122,9 @@
:config :config
(setq blacken-only-if-project-is-blackened t)) (setq blacken-only-if-project-is-blackened t))
(use-package org-fancy-priorities (use-package org-bullets
:ensure t :ensure t
:hook :init (add-hook 'org-mode-hook 'org-bullets-mode))
(org-mode . org-fancy-priorities-mode)
:config
(setq org-fancy-priorities-list '("" "" "" "")))
(add-hook 'org-mode-hook (add-hook 'org-mode-hook
(lambda() (setq header-line-format (lambda() (setq header-line-format
@ -152,7 +165,7 @@
(global-set-key "\C-cb" 'org-switchb) (global-set-key "\C-cb" 'org-switchb)
(global-set-key "\C-\M-v" 'clipboard-yank) (global-set-key "\C-\M-v" 'clipboard-yank)
(add-hook 'before-save-hook 'delete-trailing-whitespace) ;; (add-hook 'before-save-hook 'delete-trailing-whitespace) # Does not works well with auto-save-visited-mode
(add-hook 'after-init-hook 'global-company-mode) (add-hook 'after-init-hook 'global-company-mode)
@ -213,26 +226,35 @@
(add-hook 'sass-mode-hook 'hexcolour-add-to-font-lock) (add-hook 'sass-mode-hook 'hexcolour-add-to-font-lock)
(add-hook 'emacs-lisp-mode-hook 'hexcolour-add-to-font-lock) (add-hook 'emacs-lisp-mode-hook 'hexcolour-add-to-font-lock)
(add-hook 'conf-xdefaults-mode-hook 'hexcolour-add-to-font-lock) (add-hook 'conf-xdefaults-mode-hook 'hexcolour-add-to-font-lock)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(yas-global-mode 1) (yas-global-mode 1)
(setq org-directory "~/Org")
(setq org-default-notes-file "~/Org/refile.org")
(custom-set-variables (custom-set-variables
;; custom-set-variables was added by Custom. ;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(auth-source-save-behavior nil)
'(c-basic-offset 4) '(c-basic-offset 4)
'(frame-background-mode 'dark) '(frame-background-mode 'dark)
'(org-agenda-files '("~/Org/refile.org" "/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 '(package-selected-packages
'(rust-mode flycheck-grammalecte blacken spacemacs-theme company yasnippet-snippets use-package zenburn-theme markdown-mode org po-mode yaml-mode))) '(gnuplot-mode org-bullets rust-mode flycheck-grammalecte blacken spacemacs-theme company use-package zenburn-theme markdown-mode org po-mode yaml-mode)))
(load-theme 'spacemacs-light t) (load-theme 'spacemacs-light t)
(custom-set-faces (custom-theme-set-faces
;; custom-set-faces was added by Custom. 'spacemacs-light
;; If you edit it by hand, you could mess it up, so be careful. '(rst-level-1 ((t (:background "grey15" :foreground "white smoke"))))
;; Your init file should contain only one such instance. '(rst-level-2 ((t (:background "grey15" :foreground "white smoke"))))
;; If there is more than one, they won't work right. '(rst-reference ((t (:foreground "white smoke"))))
) )
(enable-theme 'spacemacs-light)
(add-to-list 'default-frame-alist '(font . "DejaVuSansMono:size=18")) (add-to-list 'default-frame-alist '(font . "DejaVuSansMono:size=18"))
(set-face-attribute 'default t :font "DejaVuSansMono:size=18") (set-face-attribute 'default t :font "DejaVuSansMono:size=18")