diff options
author | William Carroll <wpcarro@gmail.com> | 2017-05-30T19·50-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-05-30T19·51-0400 |
commit | a4f87fe53c87776cecc316aedf89009e9a6b5b47 (patch) | |
tree | 4e9778b7462ca9f42a8bb26d91c1b886ed3fa352 /configs | |
parent | b92bf435f26ba451d76c3176bce78d38bf7d0cf5 (diff) |
Adds powerline to Emacs
Diffstat (limited to 'configs')
-rw-r--r-- | configs/.emacs | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/configs/.emacs b/configs/.emacs index a3435b2cf9d5..fd5490e014ce 100644 --- a/configs/.emacs +++ b/configs/.emacs @@ -106,15 +106,11 @@ (defadvice delete-window (after restore-balance activate) (balance-windows)) - -;; Smart mode line -(use-package smart-mode-line +;; Powerline +(use-package powerline :ensure t - :init - (load-theme 'smart-mode-line-dark t) :config - (setq sml/no-confirm-load-theme t) - (sml/setup)) + (powerline-default-theme)) (defun wc/projectile-shell-pop () @@ -127,11 +123,6 @@ (term-send-string (terminal) (format "cd '%s'\n" default-directory)) (get-buffer-process "*ansi-term*"))) - -;; Disable C-c binding (future only have this for Ansi-Term -(global-unset-key (kbd "C-c")) - - ;; ERC configuration (IRC in Emacs) (use-package erc :ensure t @@ -220,11 +211,21 @@ (ad-activate 'term-sentinel) + +(defun wc/ansi-term-paste (&optional string) + "Paste into `ansi-term'." + (interactive) + (process-send-string + (get-buffer-process (current-buffer)) + (if string string (current-kill 0))))) + + ;; Ansi-Term (use-package term :ensure t :init (setq explicit-shell-file-name "/bin/zsh") + :bind (("C-v" . wc/ansi-term-paste)) :config (add-hook 'term-mode-hook 'wc/bootstrap-ansi-term) (linum-mode nil)) @@ -274,6 +275,8 @@ ("C-l" . evil-window-right) ("C-k" . evil-window-up) ("C-j" . evil-window-down) + ("C-c" . term-interrupt-subjob) + :map evil-normal-state-map ("<return>" . nil) |