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 'package)
(package-initialize)
(server-mode)
(server-start)
(setq exec-path (append exec-path '("/home/mdk/.local/bin")))
(setenv "PATH" ; This is so blacken-mode can find black in ~/.local/bin/
@ -33,11 +32,28 @@
(when (not package-archive-contents)
(package-refresh-contents))
(use-package yasnippet-snippets
:load-path "~/clones/yasnippet-snippets"
)
(use-package ido
:ensure t
:init
(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
:ensure t
:config
@ -106,12 +122,9 @@
:config
(setq blacken-only-if-project-is-blackened t))
(use-package org-fancy-priorities
:ensure t
:hook
(org-mode . org-fancy-priorities-mode)
:config
(setq org-fancy-priorities-list '("" "" "" "")))
(use-package org-bullets
:ensure t
:init (add-hook 'org-mode-hook 'org-bullets-mode))
(add-hook 'org-mode-hook
(lambda() (setq header-line-format
@ -152,7 +165,7 @@
(global-set-key "\C-cb" 'org-switchb)
(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)
@ -213,26 +226,35 @@
(add-hook 'sass-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 'before-save-hook 'delete-trailing-whitespace)
(yas-global-mode 1)
(setq org-directory "~/Org")
(setq org-default-notes-file "~/Org/refile.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.
'(auth-source-save-behavior nil)
'(c-basic-offset 4)
'(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
'(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)
(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.
)
(custom-theme-set-faces
'spacemacs-light
'(rst-level-1 ((t (:background "grey15" :foreground "white smoke"))))
'(rst-level-2 ((t (:background "grey15" :foreground "white smoke"))))
'(rst-reference ((t (:foreground "white smoke"))))
)
(enable-theme 'spacemacs-light)
(add-to-list 'default-frame-alist '(font . "DejaVuSansMono:size=18"))
(set-face-attribute 'default t :font "DejaVuSansMono:size=18")