 ;; if you want to manually auto-fill (M-q), but for that to only apply to comments
 (add-hook 'c-mode-common-hook (lambda () (setq-local comment-auto-fill-only-comments t)))
 
-;; Set custom variables:
-;;   - make man page appear in current window
-;;   - set ECB left sidebar width
-;;   - wrap lines in the ECB History and Methods buffers
+;; Set custom variables
 (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.
  '(Man-notify-method (quote pushy))
+ '(ecb-auto-expand-tag-tree (quote expand-spec))
+ '(ecb-auto-expand-tag-tree-collapse-other (quote always))
+ '(ecb-highlight-tag-with-point (quote highlight-scroll))
+ '(ecb-highlight-tag-with-point-delay 0.25)
  '(ecb-layout-window-sizes
    (quote
     (("left11"
       (ecb-methods-buffer-name 0.17901234567901234 . 0.7)
       (ecb-history-buffer-name 0.17901234567901234 . 0.275)))))
- '(ecb-options-version "2.50")
- '(ecb-tree-truncate-lines
-   (quote
-    (ecb-directories-buffer-name ecb-sources-buffer-name ecb-analyse-buffer-name))))
+ '(ecb-options-version "2.50"))
 
 ;; set some ECB faces
 ;; see http://ecb.sourceforge.net/docs/ecb_002dfaces.html for descriptions

;; backward/forward whole words.
(eval-after-load "term"
  '(progn
     ;; move by whole words fix
     (define-key term-raw-map (kbd "C-<right>") 'term-send-Cright)
     (define-key term-raw-map (kbd "C-<left>") 'term-send-Cleft)

;; default font and font size
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10"))

;; rename buffer shortcut
(global-set-key (kbd "C-c r") 'rename-buffer)

;; backup behaviour: store everything in single location
(setq backup-directory-alist '(("." . "~/.emacs.d/backups/")))
;;(setq backup-inhibited t) ;; disable backup
(setq backup-by-copying t) ;; make sure Emacs doesn't break hard links
;;(setq make-backup-files nil) ;; stop creating backup ~ files

;;(tool-bar-mode -1) ;; no toolbar

;; show tooltips in echo area
(tooltip-mode -1)
(setq tooltip-use-echo-area t)
(global-set-key (kbd "C-x t") 'display-local-help) ;; show tooltip

(setq bookmark-save-flag 1) ; everytime bookmark is changed, automatically save it

