Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (add-to-list 'load-path "~/.emacs.d/")
- (require 'auto-complete-config)
- (add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict")
- (ac-config-default)
- ;;now auto-complete-config is enabled
- (autoload 'octave-mode "octave-mod" nil t)
- (setq auto-mode-alist
- (cons '("\\.m$" . octave-mode) auto-mode-alist))
- ;;now emacs has octave support
- (add-hook 'octave-mode-hook
- (lambda ()
- (abbrev-mode 1)
- (auto-fill-mode 1)
- (if (eq window-system 'x)
- (font-lock-mode 1))))
- ;;now abbrevs is enabled (whatever that means,
- ;;though it must have something to do with octave)
- ;;the following code formats the whole buffer
- (defun iwb ()
- "indent whole buffer"
- (interactive)
- (delete-trailing-whitespace)
- (indent-region (point-min) (point-max) nil)
- (untabify (point-min) (point-max)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement