I think I have a problem..
This commit is contained in:
parent
5aa3c282be
commit
7ddb52699d
55 changed files with 745 additions and 318 deletions
22
init/init-sh.el
Normal file
22
init/init-sh.el
Normal file
|
@ -0,0 +1,22 @@
|
|||
(provide 'init-sh)
|
||||
|
||||
(after "popwin"
|
||||
(push '("*ansi-term*" :position bottom :height 0.45 :stick t) popwin:special-display-config)
|
||||
(push '("*terminal*" :position bottom :height 0.45 :stick t) popwin:special-display-config)
|
||||
(push '("*Async Shell Command*" :position bottom) popwin:special-display-config))
|
||||
|
||||
(my--cleanup-buffers-add "^\\*Shell Command Output\\*$")
|
||||
(my--cleanup-buffers-add "^\\*Async Shell Command\\*$")
|
||||
|
||||
;; Make shell scrips executable on save. Good!
|
||||
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
|
||||
|
||||
;; Color in *Shell Command Output*
|
||||
(require 'ansi-color)
|
||||
(defadvice display-message-or-buffer (before ansi-color activate)
|
||||
"Process ANSI color codes in shell output."
|
||||
(let ((buf (ad-get-arg 0)))
|
||||
(and (bufferp buf)
|
||||
(string= (buffer-name buf) "*Shell Command Output*")
|
||||
(with-current-buffer buf
|
||||
(ansi-color-apply-on-region (point-min) (point-max))))))
|
Loading…
Add table
Add a link
Reference in a new issue