trying to improve plugin system
This commit is contained in:
parent
0a009be7d6
commit
ed74856c74
1
TODO
1
TODO
|
@ -7,6 +7,7 @@
|
|||
* Disable EDE and other unused menu
|
||||
* Allow templates file to store in subdirectories so new project can
|
||||
have subdirectories
|
||||
* Improve modes.el file documentation
|
||||
|
||||
-- Useful modes --
|
||||
* org mode
|
||||
|
|
|
@ -115,5 +115,5 @@ function."
|
|||
(load-dir PLUGINPATH)
|
||||
)
|
||||
)
|
||||
(init-kuso)
|
||||
(start-kuso)
|
||||
|
||||
|
|
|
@ -16,7 +16,32 @@
|
|||
|
||||
;; C project plugin for Kuso IDE
|
||||
|
||||
;; ---------------------------------------------------------------------
|
||||
;; Groups
|
||||
;; ---------------------------------------------------------------------
|
||||
(defgroup kuso-cplugin nil
|
||||
"This group contains all the optional components of Kuso IDE C plugin."
|
||||
:group 'kuso-ide
|
||||
)
|
||||
|
||||
;; ---------------------------------------------------------------------
|
||||
;; Custom Variables
|
||||
;; ---------------------------------------------------------------------
|
||||
(defcustom c-plugin t
|
||||
"KusoIDE C programming language plugin."
|
||||
:group 'kuso-features
|
||||
:type 'boolean
|
||||
:tag '"C Plugin")
|
||||
|
||||
|
||||
;; ----------------------------------------------------------------------
|
||||
;; Minor Mode Initialization
|
||||
;; ----------------------------------------------------------------------
|
||||
|
||||
;; If user dont want the plug in so it should not loaded
|
||||
(if c-plugin
|
||||
|
||||
(progn
|
||||
;; -------------------------------------------------------------------
|
||||
;; Hooks
|
||||
;; -------------------------------------------------------------------
|
||||
|
@ -44,22 +69,7 @@
|
|||
binding for Kuso IDE C projects section."
|
||||
)
|
||||
|
||||
;; ---------------------------------------------------------------------
|
||||
;; Groups
|
||||
;; ---------------------------------------------------------------------
|
||||
(defgroup kuso-cplugin nil
|
||||
"This group contains all the optional components of Kuso IDE C plugin."
|
||||
:group 'kuso-ide
|
||||
)
|
||||
|
||||
;; ---------------------------------------------------------------------
|
||||
;; Custom Variables
|
||||
;; ---------------------------------------------------------------------
|
||||
(defcustom c-plugin t
|
||||
"KusoIDE C programming language plugin."
|
||||
:group 'kuso-features
|
||||
:type 'boolean
|
||||
:tag '"C Plugin")
|
||||
|
||||
;; ---------------------------------------------------------------------
|
||||
;; Functions
|
||||
|
@ -130,8 +140,12 @@ binding for Kuso IDE C projects section."
|
|||
(define-key kuso-cplugin-map (kbd "\C-c \C-c") 'compile)
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;; Initializing c menus at the load time
|
||||
;;(init-menus)
|
||||
(add-hook 'kuso-postinit-mode-hook 'init-menus)
|
||||
|
||||
;; ----------------------------------------------------------------------
|
||||
|
@ -163,4 +177,4 @@ This mode provide C language plugin for Kuso IDE."
|
|||
)
|
||||
)
|
||||
)
|
||||
|
||||
)
|
Loading…
Reference in New Issue