This commit is contained in:
madmaurice 2017-05-22 17:49:28 +02:00
parent 1cbc91baba
commit d14f72a188

View file

@ -83,6 +83,16 @@
;; highlight line ;; highlight line
(global-hl-line-mode) (global-hl-line-mode)
;; shackle
;(defun my/shackle-rules ()
; (setq shackle-rules
; '((term-mode :select t :align 'below :size 0.2))))
;
;(use-package shackle
; :ensure t
; :demand t
; :config '(my/shackle-rules))
;; powerline ;; powerline
(use-package powerline (use-package powerline
:ensure t :ensure t
@ -109,7 +119,8 @@
:config :config
(evil-mode 1) (evil-mode 1)
(setq evil-ex-substitute-global t) (setq evil-ex-substitute-global t)
(define-key evil-normal-state-map "/" 'swiper)) (define-key evil-normal-state-map "/" 'swiper)
(setq-default evil-cross-lines t))
;; Auto-Complete ;; Auto-Complete
(use-package auto-complete (use-package auto-complete
@ -186,17 +197,26 @@
(select-window window) (select-window window)
(term my/default-shell) (term my/default-shell)
(set-window-dedicated-p window t))) (set-window-dedicated-p window t)))
;
;(use-package term
; :bind ("C-x t" . term-split))
;
;(defun term-handle-exit--close-buffer (&rest args)
; (let ((term-window (get-buffer-window "*terminal*")))
; (when (and term-window (window-dedicated-p term-window))
; (delete-window term-window))))
;(advice-add 'term-handle-exit :after #'term-handle-exit--close-buffer)
;(add-to-list 'display-buffer-alist
; '("\\*terminal\\*" display-buffer-pop-up-window))
(defun my/term ()
(interactive)
(term my/default-shell))
(use-package term (use-package term
:bind ("C-x t" . term-split)) :bind ("C-x t" . my/term))
(defun term-handle-exit--close-buffer (&rest args)
(let ((term-window (get-buffer-window "*terminal*")))
(when (and term-window (window-dedicated-p term-window))
(delete-window term-window))))
(advice-add 'term-handle-exit :after #'term-handle-exit--close-buffer)
;; tabbing (doesn't really work yet) ;; tabbing (doesn't really work yet)
(setq-default indent-tabs-mode t) (setq-default indent-tabs-mode t)