Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (custom-set-variables
- '(initial-scratch-message nil)
- '(initial-major-mode (quote text-mode))
- '(default ((t (:family "Inconsolata" :foundry "unknown" :slant normal :weight normal :height 113 :width normal)))))
- (setq-default major-mode 'text-mode)
- (add-hook '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify))))
- (setq ispell-program-name "aspell")
- (defun fd-switch-dictionary()
- (interactive)
- (let* ((dic ispell-current-dictionary)
- (change (if (string= dic "spanish") "english" "spanish")))
- (ispell-change-dictionary change)
- (message "Dictionary switched from %s to %s" dic change)))
- (global-set-key (kbd "<f8>") 'fd-switch-dictionary)
- ;;turning on the spell-checker
- (defun turn-spell-checking-on ()
- "Turn flyspell-mode on."
- (flyspell-mode 1)
- )
- (add-hook 'text-mode-hook 'turn-spell-checking-on)
- (setq colon-double-space t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement