From: Maximilian Friedersdorff Date: Mon, 24 Oct 2016 13:56:05 +0000 (+0100) Subject: Better emacs config, make it play nice with git X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=db94d578b5f7eff95763639ac77a87944cb13733;p=max%2Fdotfiles.git Better emacs config, make it play nice with git --- diff --git a/bash/.bash_profile b/bash/.bash_profile index 8aa3b2f..c408f2d 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -1,4 +1,4 @@ -export EDITOR="/usr/bin/vim" +export EDITOR="emc" export PAGER="/usr/bin/less -R" export PATH="/home/max/.local/bin:${PATH}" diff --git a/emacs/.emacs b/emacs/.emacs index c1f6a1b..1bf96c9 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -16,7 +16,7 @@ ("4e753673a37c71b07e3026be75dc6af3efbac5ce335f3707b7d6a110ecb636a3" "b571f92c9bfaf4a28cb64ae4b4cdbda95241cd62cf07d942be44dc8f46c491f4" default))) '(package-selected-packages (quote - (zenburn-theme helm helm-config use-package flycheck company-jedi company org evil)))) + (projectile helm-projectile zenburn-theme helm helm-config use-package flycheck company-jedi company org evil)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -41,6 +41,15 @@ (helm-mode 1) (global-set-key (kbd "M-x") 'helm-M-x)) +(use-package projectile + :ensure t) + +(use-package helm-projectile + :ensure t + :config + (projectile-global-mode) + (setq projectile-completion-system 'helm) + (helm-projectile-on)) (add-hook 'after-init-hook 'global-company-mode) diff --git a/emacs/.local/bin/emc b/emacs/.local/bin/emc new file mode 100755 index 0000000..53a11bf --- /dev/null +++ b/emacs/.local/bin/emc @@ -0,0 +1,2 @@ +#!/bin/sh +emacsclient -a "" -t "$@" \ No newline at end of file diff --git a/git/.gitconfig b/git/.gitconfig index f2d54ab..2ac5251 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -6,9 +6,9 @@ diff = always [user] name = Maximilian Friedersdorff - email = maxf130@gmail.com + email = max@friedersdorff.com [core] - editor = vim + editor = emc excludesfile = /home/max/.gitignore [merge] tool = diffuse