;; automatically go into auto-fill-mode whenever text-mode is entered (setq text-mode-hook '(auto-fill-mode)) ;; always have line-number-mode and column-number-mode on by default (setq-default line-number-mode t) (setq-default column-number-mode t) (global-set-key "\C-xg" 'goto-line) (global-set-key "\C-l" 'recenter) (global-set-key "\C-xl" 'count-lines-page) (global-set-key "\C-xp" 'replace-string) (global-set-key "\C-h" 'backward-delete-char-untabify) (global-set-key "\C-cr" 'revert-buffer) ;; Configure vhdl-mode ;; ======================== ;; make sure that the directory specifed here is the one in which you ;; have the vhdl-mode.el and vhdl-mode.elc files (setq load-path (cons (expand-file-name "~/vhdl-mode-3.10") load-path)) (autoload 'vhdl-mode "vhdl-mode" "VHDL Editing Mode" t) ;; this will put you into vhdl-mode whenever you open a *.vhd or *.vhdl file (setq auto-mode-alist (append '(("\\.vhdl?$" . vhdl-mode)) auto-mode-alist)) (setq auto-mode-alist (append '(("\\.vhd?$" . vhdl-mode)) auto-mode-alist)) (setq indent-tabs-mode nil) ;; set basic number of spaces per tab and basic offset. most other offsets will ;; be a multiple of this number (setq vhdl-basic-offset 4) ;; fix indenting so that code looks like this: ;; ;; port ( ;; input in : std_logic; ;; ); ;; ;; instead of like this: ;; ;; port ( ;; input in : std_logic; ;; ); ;; (defun vhdl-mode-indent-fix () (vhdl-set-offset 'arglist-close '0) ) (add-hook 'vhdl-mode-hook 'vhdl-mode-indent-fix) ;;(setq vhdl-keywords-colorize nil) ;;(custom-set-variables ;; '(vhdl-intelligent-tab nil)) ;;(custom-set-faces) ;; ========================