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-mail-address "<IvanMalison@gmail.com>")
(setq user-full-name
(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