Advertisement
txe

txe-pre-emacs-sett.el

txe
Mar 13th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.89 KB | None | 0 0
  1. (custom-set-variables
  2.  '(initial-scratch-message nil)
  3.  '(initial-major-mode (quote text-mode))
  4.  '(default ((t (:family "Inconsolata" :foundry "unknown" :slant normal :weight normal :height 113 :width normal)))))
  5. (setq-default major-mode 'text-mode)
  6. (add-hook '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify))))
  7. (setq ispell-program-name "aspell")
  8. (defun fd-switch-dictionary()
  9.       (interactive)
  10.       (let* ((dic ispell-current-dictionary)
  11.          (change (if (string= dic "spanish") "english" "spanish")))
  12.         (ispell-change-dictionary change)
  13.         (message "Dictionary switched from %s to %s" dic change)))
  14.       (global-set-key (kbd "<f8>")   'fd-switch-dictionary)
  15.  
  16. ;;turning on the spell-checker
  17. (defun turn-spell-checking-on ()
  18.   "Turn flyspell-mode on."
  19.   (flyspell-mode 1)
  20.   )
  21. (add-hook 'text-mode-hook 'turn-spell-checking-on)
  22. (setq colon-double-space t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement