This is AbdulBijur’s .emacs file
You can download the latest emacs from : http://ourcomments.org/Emacs/EmacsW32.html
Then follow the below steps :
The .el files are the plugins that add several features to your emacs. The links to them are available within the .emacs file itself. Copy the .el files onto C:/Program Files/Emacs/site-lisp/.
Copy the .emacs file from below onto C:Documents and Settings<your username>Application Data.
(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(cua-mode t nil (cua-base)) '(show-paren-mode t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (global-set-key [(control tab)] 'bury-buffer) ;; i like bar cursors .. ;; http://www.northbound-train.com/emacs/bar-cursor.el (require 'bar-cursor) (bar-cursor-mode t) ;;color theme can be obtained from >> http://www.emacswiki.org/cgi-bin/wiki/ColorTheme (require 'color-theme) (setq color-theme-is-global t) (color-theme-robin-hood) (setq line-number-mode t) (setq dired-listing-switches "-la" ) ;; mouse wheels (mouse-wheel-mode 1) ;; the pl/sql mode : bread and butter. ;; available from : http://www.emacswiki.org/cgi-bin/wiki?PlsqlMode (setq auto-mode-alist (cons '("\\.pld$\\|\\.pls$\\|\\.pld$" . plsql-mode) auto-mode-alist)) (require 'plsql) (setq auto-mode-alist (append '(("\\.\\(p\\(?:k[bg]\\|ls\\)\\|sql\\)\\'" . plsql-mode)) auto-mode-alist)) (scroll-bar-mode 'right) (tool-bar-mode -1) (require 'sql) (defun my-sql-mode-hook () "sql mode hook that renames *SQL* buffer to reflect connection string" (define-key sql-mode-map [delete] 'delete-char) (setq comint-scroll-to-bottom-on-input 'this new-buffer-name (concat "*sql* [" (downcase sql-user) "@" (downcase sql-database) "]")) (rename-buffer new-buffer-name)) ;(add-hook 'sql-mode-hook 'my-sql-mode-hook) (add-hook 'sql-interactive-mode-hook 'my-sql-mode-hook) (add-to-list 'same-window-regexps "^\\*sql\\*.*") ;; This is important since else the sql-oracle command to launch the sqlplus in emacs will popout as a separate program. (setq sql-oracle-program "plus80.exe")