From 9411c63fdf57b7675572f18434e0d63ecacf30ca Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan Date: Tue, 23 Dec 2014 22:47:57 +0530 Subject: [PATCH] ido mode and a bunch of other small niceties --- init.el | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 9f0ad8b..7a55c5e 100644 --- a/init.el +++ b/init.el @@ -16,7 +16,7 @@ (setq visible-bell t) ;; This is bound to f11 in Emacs 24.4 -;; (toggle-frame-fullscreen) +;; (toggle-frame-fullscreen) (custom-set-variables '(initial-frame-alist (quote ((fullscreen . maximized))))) ;; Who use the bar to scroll? @@ -35,7 +35,7 @@ '("marmalade" . "http://marmalade-repo.org/packages/") t) (package-initialize) -; fetch the list of packages available +; fetch the list of packages available (unless package-archive-contents (package-refresh-contents)) @@ -113,4 +113,21 @@ (autoload 'ghc-init "ghc" nil t) (autoload 'ghc-debug "ghc" nil t) (add-hook 'haskell-mode-hook (lambda () (ghc-init))) - + +;; ido +(setq ido-enable-flex-matching t) +(setq ido-everywhere t) +(ido-mode 1) + +;; disable tabs for indentation +(setq-default indent-tabs-mode nil) + +(require 'whitespace) +(setq whitespace-style '(face lines-tail)) +(setq whitespace-line-column 80) +(global-whitespace-mode t) + +;; show trailing whitespaces +(setq-default show-trailing-whitespace t) +(setq-default indicate-empty-lines t) + -- 2.45.2