yonglehou / ergoemacs

Automatically exported from code.google.com/p/ergoemacs
0 stars 0 forks source link

make ergoemacs-mode as a emacs feature #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Elisp has a "feature" feature, that is something like a module concept in 
other languages. e.g.

(provide 'xyz)
(require 'xyz)
and the global variable “features”.

We probably should make the minor mode a feature... e.g. have at the end.

(provide 'ergoemacs-mode)

Need to look into whether other minor modes do that ... and if so, check to 
see what are required in order to make it a feature, other than just adding 
the provide.

Original issue reported on code.google.com by xah...@gmail.com on 16 Sep 2009 at 2:59

GoogleCodeExporter commented 9 years ago

Original comment by davidcapello on 17 Sep 2009 at 12:23

GoogleCodeExporter commented 9 years ago
Done:
http://code.google.com/p/ergoemacs/source/detail?r=185

Some other minor modes do the same.

Now you can use this:
(if (featurep 'ergoemacs-mode)
    (ergoemacs-mode 1))

Original comment by davidcapello on 17 Sep 2009 at 1:40