;; this is the .emacs file customized by ;; Senthil Kumaran S (global-set-key [delete] 'delete-char) (global-set-key [kp-delete] 'delete-char) ;; Load my .el files ;; (setq load-path (cons "/home/stylesen/.emacs.d/shadow/" load-path)) ;; (setq load-path (cons "/home/stylesen/.emacs.d/shadow/emacs-jabber/" load-path)) ;; Display the current time (display-time) ;; Show line and column number (line-number-mode 1) (column-number-mode 1) ;; Require xcscope for using csope ;;(require 'xcscope) ;; Require python-mode ;;(require 'python-mode) ;; Require page extension (require 'page-ext) ;; Show trailing white spaces (setq show-trailing-whitespace t) ;; Goto-line short-cut key (global-set-key "\C-l" 'goto-line) ;; turn on font-lock mode (global-font-lock-mode t) ;; enable visual feedback on selections (setq-default transient-mark-mode t) ;; Load w3m to enable web browser in emacs ;; (require 'w3m-load) ;; always end a file with a newline ;;(setq require-final-newline t) ;; Load psvn.el which is a subversion interface (require 'psvn) ;; stop at the end of the file, not just add lines (setq next-line-add-newlines nil) ;; Alignment always 80 column (set (make-local-variable 'fill-column) 80) ;; Add backup files to a temporary folder (setq make-backup-files t) (make-directory "~/.emacsbkp" t) (setq backup-directory-alist(quote (("." ."~/.emacsbkp/")))) (when window-system ;; enable wheelmouse support by default (set-foreground-color "WHITE") (set-background-color "BLACK") (set-cursor-color "GREEN") (mwheel-install) ;; use extended compound-text coding for X clipboard (set-selection-coding-system 'compound-text-with-extensions)) ;; Insert the current time inside the buffer (defun insert-time () (interactive) (insert (format-time-string "%a %b %d %X %Y"))) (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(case-fold-search t) '(current-language-environment "English") '(global-font-lock-mode t nil (font-lock)) '(make-backup-files t) '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify))) '(transient-mark-mode t)) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. ) ;; we substitute sendmail with msmtp (setq sendmail-program "/usr/bin/msmtp") ;;need to tell msmtp which account we're using (setq message-sendmail-extra-arguments '("-a" "stylesen")) ;; you might want to set the following too (setq mail-host-address "gmail.com") (setq user-full-name "Senthil Kumaran S") (setq user-mail-address "stylesen@gmail.com") ;; No tabs-- use spaces when indenting (doesn't affect Makefiles, ;; does affect text files and code, doesn't affect existing tabs). ;; The use of setq-default means this only affects modes that don't ;; overwrite this setting. (setq-default indent-tabs-mode nil)