Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added basic menu.

  • Loading branch information...
commit fd69e1990379862e1252395c82ccf57aa30fb949 1 parent 0f8f9c3
@csw csw authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 hyde.el
View
16 hyde.el
@@ -21,6 +21,7 @@
;; Requirements
(require 'hyde-git)
(require 'hyde-md)
+(require 'easymenu)
;; Constants for internal use
(defconst hyde/hyde-version "0.2"
@@ -302,6 +303,21 @@ user"
hyde-mode-map)
"Keymap for Hyde")
+;; Menu
+(easy-menu-define hyde-mode-menu hyde-mode-map
+ "Hyde menu"
+ '("Hyde"
+ ["New post" hyde/new-post t]
+ ["Open post" hyde/open-post-maybe t]
+ ["Commit post" hyde/hyde-commit-post t]
+ ["Promote post" hyde/promote-to-post t]
+ "---"
+ ["Refresh" hyde/load-posts t]
+ ["Run Jekyll" hyde/run-jekyll t]
+ ["Deploy" hyde/deploy t]
+ ["Push" hyde/hyde-push t]
+ ["Quit" hyde/quit t]
+ ))
(defun hyde/load-posts ()
"Load up the posts and present them to the user"
Please sign in to comment.
Something went wrong with that request. Please try again.