Documente Academic
Documente Profesional
Documente Cultură
(setq require-final-newline t)
;; Don't wrap long lines
(setq-default truncate-lines t)
;; Make find-file and buffer switch case insensitive
(setq read-file-name-completion-ignore-case t)
(setq read-buffer-completion-ignore-case t)
;;-----------------------------------------;; Shell Mode
;;-----------------------------------------(defun my-keys-shell ()
(define-key shell-mode-map "\C-j" 'comint-send-input)
(set-face-foreground 'comint-highlight-prompt "orange")
)
(add-hook 'shell-mode-hook 'my-keys-shell)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
;;-----------------------------------------;; C and C++ Modes
;;-----------------------------------------(defun my-c-mode-common-hook ()
(setq c-tab-always-indent t)
(setq comment-style 'multi-line)
(setq comment-start "/* ")
(setq comment-end " */")
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
;;-----------------------------------------;; Scons
;;-----------------------------------------;; Tells Emacs to use scons instead of make to compile
(setq compile-command "scons -Q")
;; Load python-mode for scons files
(setq auto-mode-alist(cons '("SConstruct" . python-mode) auto-mode-alist))
(setq auto-mode-alist(cons '("SConscript" . python-mode) auto-mode-alist))
;;-----------------------------------------;; Perforce Library
;;
;; http://p4el.sourceforge.net/
;;-----------------------------------------;;(load-library "p4")
;;-----------------------------------------;; MATLAB and Octave Mode
;;-----------------------------------------(setq auto-mode-alist (cons '("\\.m$" . octave-mode) auto-mode-alist))
;;-----------------------------------------;; Verilog Mode
;;
;; http://www.veripool.org/wiki/verilog-mode
;;-----------------------------------------;;(autoload 'verilog-mode "verilog-mode.el" "Verilog Mode" t)
;;(setq auto-mode-alist (cons '("\\.v\\'" . verilog-mode) auto-mode-alist))
;;(add-hook 'verilog-mode-hook '(lambda () (font-lock-mode 1)))