Commit 1c1e47b3 authored by Guilherme Semente's avatar Guilherme Semente 🌱

Add term setup

parent 56449893
......@@ -466,7 +466,19 @@ You may find other key bindings inside use-package statements."
comint-scroll-show-maximum-output nil
comint-input-ignoredups t
comint-prompt-read-only t
comint-completion-recexact t)))
comint-completion-recexact t))
(use-package term
:bind ("C-c z" . semente-term)
:bind (:map term-raw-map ("C-c z" . semente-jump-to-register-T))
:preface
(defun semente-term ()
(interactive)
(window-configuration-to-register 'T)
(term "/bin/zsh"))
(defun semente-jump-to-register-T ()
(interactive)
(jump-to-register 'T t))))
......@@ -980,12 +992,12 @@ You may find other key bindings inside use-package statements."
:bind (("C-c a" . org-agenda)
("C-c c" . org-capture)
("C-c l" . org-store-link)
("C-c t" . org-clock-goto)
("C-c s" . org-occur-in-agenda-files))
("C-c t" . org-clock-goto))
:preface
(defadvice org-agenda-quit (after save-on-quit activate)
"Advise agenda-quit to save all org buffers on quit")
(save-some-buffers t (lambda () (derived-mode-p 'org-mode)))
"Advise agenda-quit to save all org buffers on quit"
(save-some-buffers t (lambda () (derived-mode-p 'org-mode))))
;; save org buffers periodically as long as the agenda buffer is open
(add-hook 'org-agenda-mode-hook
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment