Skip to content
Snippets Groups Projects
Commit 36514d0e authored by Philippe Dosch's avatar Philippe Dosch
Browse files

Refactoring conf magit

parent 219753d3
No related branches found
No related tags found
No related merge requests found
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
;; Pour faire ressortir l'indentation ;; Pour faire ressortir l'indentation
(use-package highlight-indent-guides (use-package highlight-indent-guides
:ensure t :ensure t
:init :config
(setq highlight-indent-guides-method 'character)) (setq highlight-indent-guides-method 'character))
;; Les numéros de ligne qui apparaissent sur chaque ligne ;; Les numéros de ligne qui apparaissent sur chaque ligne
...@@ -479,6 +479,24 @@ ...@@ -479,6 +479,24 @@
:config :config
(global-smartscan-mode)) (global-smartscan-mode))
;; Magit
;; Pour avoir une séquence plus sympa de sortie des server-edit
;; (pour sortir en particulier des log de commit git sous magit)
(use-package magit
:ensure t
:config
(add-hook 'server-switch-hook
(lambda ()
(when (current-local-map)
(use-local-map (copy-keymap (current-local-map))))
(when server-buffer-clients
(local-set-key [(control *)] 'server-edit))))
(global-set-key [(control !)] 'magit-status)
(setq magit-save-some-buffers 'dontask)
(setq magit-commit-all-when-nothing-staged 'askstage))
;; =============================== ;; ===============================
;; Configurations variables/styles ;; Configurations variables/styles
;; =============================== ;; ===============================
...@@ -527,7 +545,6 @@ ...@@ -527,7 +545,6 @@
'(lambda () '(lambda ()
(auto-fill-mode 1) (auto-fill-mode 1)
(gin-mode 1) (gin-mode 1)
(linum-mode -1)
(ispell-change-dictionary "francais") (ispell-change-dictionary "francais")
(flyspell-mode 1))) (flyspell-mode 1)))
...@@ -848,28 +865,6 @@ ...@@ -848,28 +865,6 @@
(global-set-key "\C-xc" 'comtex) (global-set-key "\C-xc" 'comtex)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Pour avoir une séquence plus sympa de sortie des server-edit
;; (pour sortir en particulier des log de commit git sous magit)
(add-hook 'server-switch-hook
(lambda ()
(when (current-local-map)
(use-local-map (copy-keymap (current-local-map))))
(when server-buffer-clients
(local-set-key [(control *)] 'server-edit))))
;; Pour magit
(global-set-key [(control !)] 'magit-status)
(require 'magit)
; Magit enregistre automatiquement les fichiers non sauvés
(setq magit-save-some-buffers 'dontask)
; Quand rien n'est indexé, on indexe tout par défaut
(setq magit-commit-all-when-nothing-staged 'askstage)
;; Accès direct au répertoire courant avec C-x C-j ;; Accès direct au répertoire courant avec C-x C-j
(require 'dired-x) (require 'dired-x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment