Move term-mode-func to display library
This commit is contained in:
parent
f0a28b3580
commit
9f3b09b5b1
2 changed files with 12 additions and 6 deletions
|
@ -141,10 +141,6 @@ MODE1 is enabled and vice-versa."
|
|||
"Set the `disabled' property for each item in FUNCTIONS to nil."
|
||||
(mapc #'(lambda (f) (put f 'disabled nil)) functions))
|
||||
|
||||
(defun oni:term-mode-func ()
|
||||
"Function for `term-mode-hook'."
|
||||
(setq truncate-lines nil))
|
||||
|
||||
(defun oni:vala-mode-func ()
|
||||
"Function for `vala-mode-hook'."
|
||||
(setq indent-tabs-mode nil))
|
||||
|
@ -561,11 +557,16 @@ MODE1 is enabled and vice-versa."
|
|||
;; Support the prompt from MariaDB
|
||||
(add-hook 'sql-interactive-mode-hook 'oni:augment-sql-prompt)
|
||||
|
||||
(add-hook 'term-mode-hook 'oni:term-mode-func)
|
||||
;; Disable line truncation in term-mode.
|
||||
(add-hook 'term-mode-hook 'oni:disable-line-truncation)
|
||||
|
||||
(add-hook 'vala-mode-hook #'oni:vala-mode-func)
|
||||
(add-hook 'write-file-hooks 'oni:write-file-func)
|
||||
(add-hook 'yas-global-mode-hook 'oni:yas-minor-mode-func)
|
||||
(add-hook 'ert-results-mode-hook (lambda () (setq truncate-lines nil)))
|
||||
|
||||
;; Disable line truncation in ERT results.
|
||||
(add-hook 'ert-results-mode-hook 'oni:disable-line-truncation)
|
||||
|
||||
(add-hook 'ruby-mode-hook (lambda () (setq-local fci-rule-column 80)))
|
||||
(add-hook 'projectile-rails-mode-hook (lambda () (define-key projectile-rails-mode-map (kbd "C-c r") 'hydra-projectile-rails/body)))
|
||||
(add-hook 'projectile-mode-hook 'projectile-rails-on)
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
;;;###autoload
|
||||
(defun oni:disable-line-truncation ()
|
||||
"Function for `term-mode-hook'."
|
||||
(setq truncate-lines nil))
|
||||
|
||||
;;;###autoload
|
||||
(defun oni:pop-to-buffer-in-side-window (buffer alist)
|
||||
"Display and select BUFFER in a side window."
|
||||
|
|
Loading…
Reference in a new issue