Use GFM, as git.korewanetadesu.com now supports it.
[pelican-mode.git] / pelican-mode.el
index 0bb885b..1b608be 100644 (file)
 ;;     (require 'pelican-mode)
 ;;     (pelican-global-mode)
 ;;
 ;;     (require 'pelican-mode)
 ;;     (pelican-global-mode)
 ;;
+;; Or with ``use-package'' and deferred loading:
+;;
+;;     (use-package pelican-mode
+;;       :after (:any org rst markdown-mode adoc-mode)
+;;       :config
+;;       (pelican-global-mode))
+;;
 ;; Or, register `pelican-mode' or `pelican-mode-enable-if-site'
 ;; as hook functions for more direct control.
 
 ;; Or, register `pelican-mode' or `pelican-mode-enable-if-site'
 ;; as hook functions for more direct control.
 
@@ -60,7 +67,7 @@
 
 ;; Customizations
 
 
 ;; Customizations
 
-(defgroup pelican-mode nil
+(defgroup pelican nil
   "Support for Pelican articles and pages.
 
 For more information about Pelican see URL https://blog.getpelican.com/."
   "Support for Pelican articles and pages.
 
 For more information about Pelican see URL https://blog.getpelican.com/."
@@ -68,7 +75,7 @@ For more information about Pelican see URL https://blog.getpelican.com/."
 
 (defcustom pelican-mode-keymap-prefix (kbd "C-c P")
   "Pelican mode keymap prefix."
 
 (defcustom pelican-mode-keymap-prefix (kbd "C-c P")
   "Pelican mode keymap prefix."
-  :group 'pelican-mode
+  :group 'pelican
   :type 'string)
 
 (defcustom pelican-mode-default-page-fields
   :type 'string)
 
 (defcustom pelican-mode-default-page-fields
@@ -77,7 +84,7 @@ For more information about Pelican see URL https://blog.getpelican.com/."
 
 See the documentation for `pelican-mode-set-field' for more information
 about metadata fields and special values."
 
 See the documentation for `pelican-mode-set-field' for more information
 about metadata fields and special values."
-  :group 'pelican-mode
+  :group 'pelican
   :type '(plist))
 
 (defcustom pelican-mode-default-article-fields
   :type '(plist))
 
 (defcustom pelican-mode-default-article-fields
@@ -86,7 +93,7 @@ about metadata fields and special values."
 
 See the documentation for `pelican-mode-set-field' for more information
 about metadata fields and special values."
 
 See the documentation for `pelican-mode-set-field' for more information
 about metadata fields and special values."
-  :group 'pelican-mode
+  :group 'pelican
   :type '(plist))
 
 (defcustom pelican-mode-formats
   :type '(plist))
 
 (defcustom pelican-mode-formats
@@ -98,7 +105,7 @@ about metadata fields and special values."
 
 This association list maps modes to functions that take two
 arguments, field and value strings."
 
 This association list maps modes to functions that take two
 arguments, field and value strings."
-  :group 'pelican-mode
+  :group 'pelican
   :type '(alist :key-type function :value-type function))
 
 \f
   :type '(alist :key-type function :value-type function))
 
 \f
@@ -142,8 +149,7 @@ When Pelican mode is enabled, additional commands are available
 for editing articles or pages:
 
 \\{pelican-mode-map}"
 for editing articles or pages:
 
 \\{pelican-mode-map}"
-  :group 'pelican-mode
-  :require 'pelican-mode
+  :group 'pelican
   :keymap pelican-mode-map
   :lighter " Pelican")
 
   :keymap pelican-mode-map
   :lighter " Pelican")
 
@@ -152,7 +158,7 @@ for editing articles or pages:
   (lambda ()
     (when (derived-mode-p #'text-mode)
       (pelican-mode-enable-if-site)))
   (lambda ()
     (when (derived-mode-p #'text-mode)
       (pelican-mode-enable-if-site)))
-  :group 'pelican-mode
+  :group 'pelican
   :require 'pelican-mode)
 
 ;;;###autoload
   :require 'pelican-mode)
 
 ;;;###autoload