Web Developer Hydra

The keys to the piano taped and labelled. You only need to learn to play, and then compose.


;define a title function
(defvar web-dev-title (with-octicon "globe" "Web Development"))
;generate hydra
(pretty-hydra-define Web-Development (:title web-dev-title :quit-key "q" :color blue )
("Mode"
(
    ("p" php-mode "PHP Mode")
    ("w" web-mode "WEB Mode")
    ("g" html-mode "HTML Mode")
    ("3" js2-mode "Javascript Mode")
    ("e" emmet-mode "Emmet Mode" )
    ("M" emmet-cheat-sheet "Emmet Cheat Sheet")
    ("P" php-cheat-sheet "PHP Cheat Sheet")
    ("J" js-cheat-sheet "Javascript Cheat Sheet")
    ("B" bootstrap-cheat-sheet "Bootstrap Cheat Sheet")
    ("W" wordpress-cheat-u "Wordpress Cheat Sheet")
    ("4" css-grid-cheat-sheet "CSS-GRID Cheat Sheet" )
    ( "r" refresh-chrome "Refresh Chrome")
);end mode
"Action"
(
    (";" comment-out-region "Comment Out Region" )
    ("." smart-comment-line "Smart Comment Line" )
    ("i" insert-yasnippet "Insert Yasnippet" )
    ("H" helm-emmet "Helm Select Emmet" )
    ("m" company-web-html "HTML Complete" )
    ("t" company-complete "Company Complete")
    ("I" highlight-indent-guides-mode  "Show Indent Guides" :toggle t )
    ("E" elnode-make-webserver "Make Elnode Server (choose 8028)")
    ("7" list-elnode-servers "List Elnode Servers")
    ("6" elnode-stop "Stop Elnode Servers")
    ("1" elnode-start "Start Elnode Server")
    ("0" visit-localhost-elnode "Elnode-8028 Local Host")
    ("8" jump-to-elnode-public "Jump ELNODE PUBLIC (in /emacs)")
);end action

"Other"
(
    ("x" launch-xampp "Launch Xampp")
    ("!" launch-live-reload "Launch Live Reload")
    ("n" launch-notepad++ "Launch Notepad++")
    ("j" jump-to-htdocs "Jump To HTDOCS")
    ("c" change-inner "Change Inner")
    ("s" web-mode-element-content-select "Select Content" )
    ("l" company-try-harder "Cycle Backends" )
;    ("V" code-validator "Code Validator")
    ("L" visit-localhost-xampp "HTDOCS Local Host")
    ("N" Javascripts/body "GoTo JS-mode Interface")
    ("v" Web-Mode/body "GoTo Web-Mode Interface")
    ("h" hydra-helm/body "Return To Helm" :color blue )
    ("<SPC>" nil "Quit" :color blue)

);end other
);end hydra body
);end pretty-hydra-web-development
(bind-key "<C-m> w" 'Web-Development/body)

emacs posiedon configuration web developer code