 ;; right).
 
 ;; gdb (gud) does some stupid things with windows, this stops some of it:
-(setq gdb-use-separate-io-buffer nil)
-(setq gdb-many-windows nil)
+(set 'gdb-use-separate-io-buffer nil)
+(set 'gdb-many-windows nil)
 
 
 ;; Improving Auto complete in minibuffer

(line-number-mode 1) ;; Line numbers in mode line
(column-number-mode 1) ;; Column numbers in mode line
(global-linum-mode t) ;; Line numbers on edge of screen
(setq backup-directory-alist '(("." . ".~"))) ;; Keep backups in .~/
(setq inhibit-startup-screen t) ;; No startup screen
(set-scroll-bar-mode 'right);; Scroll bar on the right
(global-visual-line-mode 1) ;; Wrap lines at nearest word
(setq truncate-partial-width-windows nil) ;; Make line wrapping work for
                                          ;; multiple frames
(tool-bar-mode -1) ;; Disable toolbar
(menu-bar-mode -1) ;; Disable menu bar

(defun ido-sort-mtime () '()) ;; actually, disable it because it's so slow

;; Enable some fuzzy matching
(set 'ido-enable-flex-matching t)

;; Allow completion (and opening) of buffers that are actually closed.
(set 'ido-use-virtual-buffers t)
(set 'recentf-max-saved-items 1000) ;; increase number of buffers to rememeber

;; Cycle through commands with tab if we can't complete any further.
(set 'ido-cannot-complete-command 'ido-next-match)

;; Use ido style completion everywhere (separate package)
;;(ido-ubiquitous-mode t)

;; Buffer selection even if already open elsewhere
(set 'ido-default-buffer-method 'selected-window)

;; Create new buffers without prompting
(set 'ido-create-new-buffer 'always)

;; Add ignore regex for useless files?

