get name and email from gitconfig.

This commit is contained in:
Ivan Malison 2014-05-10 14:28:27 -07:00
parent 91d8100e36
commit e7f72fc469

View File

@ -1,13 +1,14 @@
;; ============================================================================= ;; =============================================================================
;; Ivan Malison
;; ___ _ __ ___ __ _ ___ ___ ;; ___ _ __ ___ __ _ ___ ___
;; / _ \ '_ ` _ \ / _` |/ __/ __| ;; / _ \ '_ ` _ \ / _` |/ __/ __|
;; | __/ | | | | | (_| | (__\__ \ ;; | __/ | | | | | (_| | (__\__ \
;; (_)___|_| |_| |_|\__,_|\___|___/ ;; (_)___|_| |_| |_|\__,_|\___|___/
;; ============================================================================= ;; =============================================================================
(setq user-full-name "Ivan Malison") (setq user-full-name
(setq user-mail-address "<IvanMalison@gmail.com>") (replace-regexp-in-string "\n$" "" (shell-command-to-string "git config --get user.email")))
(setq user-mail-address
(replace-regexp-in-string "\n$" "" (shell-command-to-string "git config --get user.name")))
;; ============================================================================= ;; =============================================================================
;; Load Path Configuration ;; Load Path Configuration