Commit cb95ebdb authored by Arnaud Legrand's avatar Arnaud Legrand

Use magit if available !!

parent 16cd34ce
...@@ -234,7 +234,9 @@ official webpage: http://company-mode.github.io/ ...@@ -234,7 +234,9 @@ official webpage: http://company-mode.github.io/
it on a daily basis but you should definitely understand what git does it on a daily basis but you should definitely understand what git does
behind the scene beforehand. If you feel this would be useful for you, behind the scene beforehand. If you feel this would be useful for you,
you should follow the instructions from here: you should follow the instructions from here:
https://www.emacswiki.org/emacs/Magit https://www.emacswiki.org/emacs/Magit. If you installed the previous
"/reproducible research/" emacs configuration, you can easily invoke
magit by using ~C-x g~.
** Other resources ** Other resources
- [[https://orgmode.org/orgguide.pdf][The compact Org-mode Guide]] - [[https://orgmode.org/orgguide.pdf][The compact Org-mode Guide]]
- [[https://github.com/dfeich/org-babel-examples][Many examples illustrating the use of different languages in org-mode]] - [[https://github.com/dfeich/org-babel-examples][Many examples illustrating the use of different languages in org-mode]]
...@@ -78,6 +78,10 @@ ...@@ -78,6 +78,10 @@
(global-set-key [f5] '(lambda () (interactive) (revert-buffer nil t nil))) (global-set-key [f5] '(lambda () (interactive) (revert-buffer nil t nil)))
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "C-x M-g") 'magit-dispatch-popup)
;; (global-magit-file-mode 1)
(defun auto-fill-mode-on () (TeX-PDF-mode 1)) (defun auto-fill-mode-on () (TeX-PDF-mode 1))
(add-hook 'tex-mode-hook 'TeX-PDF-mode-on) (add-hook 'tex-mode-hook 'TeX-PDF-mode-on)
(add-hook 'latex-mode-hook 'TeX-PDF-mode-on) (add-hook 'latex-mode-hook 'TeX-PDF-mode-on)
......
...@@ -144,6 +144,14 @@ my other shortcuts (e.g., the ones for spelling a region). ...@@ -144,6 +144,14 @@ my other shortcuts (e.g., the ones for spelling a region).
#+begin_src emacs-lisp :tangle init.el #+begin_src emacs-lisp :tangle init.el
(global-set-key [f5] '(lambda () (interactive) (revert-buffer nil t nil))) (global-set-key [f5] '(lambda () (interactive) (revert-buffer nil t nil)))
#+end_src #+end_src
** Invoke magit (for git) :WEB:
From http://magit.vc/manual/magit.pdf
#+begin_src emacs-lisp :tangle init.el
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "C-x M-g") 'magit-dispatch-popup)
;; (global-magit-file-mode 1)
#+end_src
* Small fixes for LaTeX: * Small fixes for LaTeX:
** PDF with LaTeX by default :ARNAUD: ** PDF with LaTeX by default :ARNAUD:
#+begin_src emacs-lisp :tangle init.el #+begin_src emacs-lisp :tangle init.el
......
...@@ -40,6 +40,9 @@ shortcuts. This can be changed from the Options menu. ...@@ -40,6 +40,9 @@ shortcuts. This can be changed from the Options menu.
- =C-x C-h= get the list of emacs shortcuts - =C-x C-h= get the list of emacs shortcuts
- =C-c C-h= get the list of emacs shortcuts considering the mode you are - =C-c C-h= get the list of emacs shortcuts considering the mode you are
currently using (e.g., C, Lisp, org, ...) currently using (e.g., C, Lisp, org, ...)
- With the "/reproducible research/" emacs configuration, ~C-x g~ allows
you to invoke [[https://magit.vc/][Magit]] (provided you installed it beforehand!) which
is a nice git interface for Emacs.
There are a bunch of cheatsheets also available out there (e.g., There are a bunch of cheatsheets also available out there (e.g.,
[[http://www.shortcutworld.com/en/linux/Emacs_23.2.1.html][this one for emacs]] and [[http://orgmode.org/orgcard.txt][this one for org-mode]] or this [[http://sachachua.com/blog/wp-content/uploads/2013/05/How-to-Learn-Emacs-v2-Large.png][graphical one]]). [[http://www.shortcutworld.com/en/linux/Emacs_23.2.1.html][this one for emacs]] and [[http://orgmode.org/orgcard.txt][this one for org-mode]] or this [[http://sachachua.com/blog/wp-content/uploads/2013/05/How-to-Learn-Emacs-v2-Large.png][graphical one]]).
***** Org-mode ***** Org-mode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment