Commits

yagnesh raghava yakkala committed 535268a

* init-term.el: new

  • Participants
  • Parent commits 45bb55b

Comments (0)

Files changed (3)

 
 ;;; General settings
 
+;;; Some environment variables
+(setenv "LANG" "C")
+(setenv "LC_COLLATE" "en_US.UTF-8")
+(setenv "LC_CTYPE" "en_US.UTF-8")
+(setenv "LC_MESSAGES" "en_US.UTF-8")
+
+(setenv "PAGER" "cat")
+(setenv "TERM" "xterm")
+(setenv "TMPDIR" "/tmp")
+
 ;; I dont what this means. but looks imp
 (setq buffer-file-coding-system 'utf-8-unix)
 (setq default-file-name-coding-system 'utf-8-unix)
 (setq default-sendmail-coding-system 'utf-8-unix)
 (setq default-terminal-coding-system 'utf-8-unix)
 
-;;; for stupid programs
-(setenv "LANG" "C")
-(setenv "LC_COLLATE" "en_US.UTF-8")
-(setenv "LC_CTYPE" "en_US.UTF-8")
-(setenv "LC_MESSAGES" "en_US.UTF-8")
-(setenv "TERM" "xterm")
-(setenv "TMPDIR" "/tmp")
-
-;;; increase message log
+;; Increase message log
 (setq message-log-max 5000)
 
 (setq-default

init-scratch.el

-;;; init-scratch.el
-;;
-;; Copyright (C) Yagnesh Raghava Yakkala. http://yagnesh.org
-;;    File: init-scratch.el
-;; Created: Friday, October 14 2011
-;; License: GPL v3 or later. <http://www.gnu.org/licenses/gpl.html>
-
-;;; Description:
-;; test purposes
-
-;;; init-scratch.el ends here
+;;; init-term.el
+;;
+;; Copyright (C) Yagnesh Raghava Yakkala. http://yagnesh.org
+;;    File: init-term.el
+;; Created: Saturday, February  4 2012
+;; License: GPL v3 or later. <http://www.gnu.org/licenses/gpl.html>
+
+;;; Description:
+;;
+
+;;; comint
+
+;; (require 'comint)
+
+(setq-default
+ comint-scroll-to-bottom-on-input t    ; always insert at the bottom
+ comint-scroll-to-bottom-on-output nil ; always add output at the bottom
+ comint-scroll-show-maximum-output t ; scroll to show max possible output
+ comint-input-ignoredups t          ; no duplicates in command history
+ comint-completion-addsuffix t ; insert space/slash after file completion
+ comint-buffer-maximum-size 20000  ; max length of the buffer in lines
+ comint-input-ring-size 5000 ; max shell history size
+ )
+
+;; truncate buffers continuously
+(add-hook 'comint-output-filter-functions 'comint-truncate-buffer)
+
+;; interpret and use ansi color codes in shell output windows
+(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
+
+;;; tramp
+(setq tramp-default-method "ssh")
+
+;;; init-term.el ends here