.emacs-my
changeset 202 a89804893475
parent 200 1e2213b996db
child 203 47d088c870f7
equal deleted inserted replaced
200:1e2213b996db 202:a89804893475
   577 
   577 
   578 ;; ======================================================================
   578 ;; ======================================================================
   579 ;;
   579 ;;
   580 ;; SHELL
   580 ;; SHELL
   581 
   581 
   582 ;; If you plan to use the bash shell, add the following lines to your .emacs file:
   582 ;; Setup Emacs to run bash as its primary shell.
   583 ;; (setq binary-process-input t)
   583 ;; (setq binary-process-input t)
   584 ;; (setq w32-quote-process-args ?\")
       
   585 ;; (setq shell-file-name "bash") ;; or sh if you rename your bash executable to sh.
       
   586 ;; (setenv "SHELL" shell-file-name)
       
   587 ;; (setq explicit-shell-file-name shell-file-name)
       
   588 ;; (setq explicit-sh-args '("-login" "-i"))
       
   589 
       
   590 ;; Include the following only if you want to run
       
   591 ;; bash as your shell.
       
   592 
       
   593 ;; Setup Emacs to run bash as its primary shell.
       
   594 ;; (setq shell-file-name "bash")
   584 ;; (setq shell-file-name "bash")
   595 ;; (setq shell-command-switch "-c")
   585 ;; (setq shell-command-switch "-c")
   596 ;; (setq explicit-shell-file-name shell-file-name)
   586 ;; (setq explicit-shell-file-name shell-file-name)
   597 ;; (setenv "SHELL" shell-file-name)
   587 ;; (setenv "SHELL" shell-file-name)
   598 ;; (setq explicit-sh-args '("-login" "-i"))
       
   599 ;; (if (boundp 'w32-quote-process-args)
   588 ;; (if (boundp 'w32-quote-process-args)
   600 ;;     (setq w32-quote-process-args ?\")) ;; Include only for MS Windows.
   589 ;;     (setq w32-quote-process-args ?\")) ;; Include only for MS Windows.
   601 
   590 
   602 ;; (setq sh-shell-file "D:\\home\\cygwin\\bin\\sh.exe")
   591 (setq explicit-sh-args '("-login" "-i"))
   603 ;; (setq sh-shell-arg (quote ((bash) (csh . "-f") (pdksh) (ksh88) (rc . "-p") (wksh) (zsh . "-f") (sh . "-i"))))
       
   604 (setq explicit-bash-args (quote ("-login" "-i")))
   592 (setq explicit-bash-args (quote ("-login" "-i")))
   605 
   593 
   606 (when (provide 'bat-mode)
   594 (when (provide 'bat-mode)
   607   (progn
   595   (progn
   608     (add-to-list 'auto-mode-alist '("\\.[bB][aA][tT]\\'" . bat-mode))
   596     (add-to-list 'auto-mode-alist '("\\.[bB][aA][tT]\\'" . bat-mode))