Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dot-emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Del Pino
dot-emacs
Commits
e754a302
Commit
e754a302
authored
9 months ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.delpinux.fr:delpino/dot-emacs
parents
b52ae6b7
43538eb5
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Configuration.org
+18
-0
18 additions, 0 deletions
Configuration.org
with
18 additions
and
0 deletions
Configuration.org
+
18
−
0
View file @
e754a302
...
...
@@ -1019,6 +1019,24 @@ checkout -p~)
:color blue))
#+END_SRC
Affiche les statistiques ~git~ dans la Modeline
#+BEGIN_SRC emacs-lisp
(defadvice vc-git-mode-line-string (after plus-minus (file) compile activate)
"Show the information of git diff on modeline."
(setq ad-return-value
(concat (propertize ad-return-value 'face '(:foreground "white" :weight bold))
" ["
(let ((plus-minus (vc-git--run-command-string
file "diff" "--numstat" "--")))
(if (and plus-minus
(string-match "^\\([0-9]+\\)\t\\([0-9]+\\)\t" plus-minus))
(concat
(propertize (format "+%s" (match-string 1 plus-minus)) 'face '(:foreground "green3"))
(propertize (format "-%s" (match-string 2 plus-minus)) 'face '(:inherit font-lock-warning-face)))
(propertize "✔" 'face '(:foreground "green3" :weight bold))))
"]")))
#+END_SRC
** FlySpell
Correcteur orthographique à la volée.
#+BEGIN_SRC emacs-lisp
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment