diff --git a/emacs/.emacs b/emacs/.emacs index aa14199..7b72730 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -83,6 +83,16 @@ ;; highlight line (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 (use-package powerline :ensure t @@ -109,7 +119,8 @@ :config (evil-mode 1) (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 (use-package auto-complete @@ -186,17 +197,26 @@ (select-window window) (term my/default-shell) (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 - :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) - + :bind ("C-x t" . my/term)) ;; tabbing (doesn't really work yet) (setq-default indent-tabs-mode t)