Skip to content

Forked Emacs-lisp package from emacswiki's auto-capitalize.el to use at SKK

Notifications You must be signed in to change notification settings

yuutayamada/auto-capitalize-el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 

Repository files navigation

auto-capitalize.el

Capitalize char automatically on Emacs. This package was forked from emacswiki for my daily use.

Some improvements and changes are:

  • Recognize programming mode context. Only active auto-capitalize-mode inside comment or string if the major-mode was derived from prog-mode.
  • In org-mode, suppress auto-capitalize-mode inside src-block (#+begin_src ...)
  • Only check after you typed certain characters. You can change this behavior by auto-capitalize-allowed-chars.
  • Improve default predicate function.

Installation

If you use el-get you can add recipe to el-get-source following code:

(push '(:name auto-capitalize
        :type github
        :pkgname "yuutayamada/auto-capitalize-el")
       el-get-sources)

And then load this package after execute M-x el-get-install RET auto-capitalize

(require 'auto-capitalize)

Configuration Examples

(setq auto-capitalize-words `("I" "English"))
(add-hook 'after-change-major-mode-hook 'auto-capitalize-mode)

or

;; This configuration adds capitalized words of .aspell.en.pws
;; (aspell's user dictionary)
(require 'auto-capitalize)
(setq auto-capitalize-words `("I" "English"))
(setq auto-capitalize-aspell-file "path/to/.aspell.en.pws")
(auto-capitalize-setup)

About

Forked Emacs-lisp package from emacswiki's auto-capitalize.el to use at SKK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published