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
@ -168,7 +169,7 @@ Return a list of installed packages or nil for every package not installed."
(add-to-list 'flymake-allowed-file-name-masks '("\\.py\\'" flymake-pylint-init)) (add-to-list 'flymake-allowed-file-name-masks '("\\.py\\'" flymake-pylint-init))
; Load flymake on non-temp buffers ; Load flymake on non-temp buffers
(add-hook 'python-mode-hook (add-hook 'python-mode-hook
(lambda () (unless (or (eq buffer-file-name nil) (eq (file-name-directory buffer-file-name) nil)) (flymake-mode 1)))) (lambda () (unless (or (eq buffer-file-name nil) (eq (file-name-directory buffer-file-name) nil)) (flymake-mode 1))))