All Projects → kuanyui → Hexo.el

kuanyui / Hexo.el

Use Hexo in Emacs elegantly

Labels

Projects that are alternatives of or similar to Hexo.el

Hexo Renderer Org
Hexo renderer plugin for emacs org-mode
Stars: ✭ 157 (+101.28%)
Mutual labels:  hexo, emacs
Embrace.el
Add/Change/Delete pairs based on `expand-region', similar to `evil-surround'.
Stars: ✭ 76 (-2.56%)
Mutual labels:  emacs
Elisp
The hive for Göktuğ's Emacs Stuff.
Stars: ✭ 70 (-10.26%)
Mutual labels:  emacs
Dmacs
Emacs Literate Configuration with borg
Stars: ✭ 74 (-5.13%)
Mutual labels:  emacs
Dotfiles
💻 Dotfiles for zsh, vim, emacs, tmux, and bash. Tested on mac os.
Stars: ✭ 70 (-10.26%)
Mutual labels:  emacs
Eziam Theme Emacs
A mostly grayscale theme for Emacs, inspired by Tao and Leuven.
Stars: ✭ 74 (-5.13%)
Mutual labels:  emacs
Color Theme Buffer Local
Set emacs color themes by buffer.
Stars: ✭ 69 (-11.54%)
Mutual labels:  emacs
Guess Language.el
Emacs minor mode that detects the language you're typing in. Automatically switches spell checker. Supports multiple languages per document.
Stars: ✭ 78 (+0%)
Mutual labels:  emacs
.emacs.d
My emacs configuration
Stars: ✭ 76 (-2.56%)
Mutual labels:  emacs
Emacs Gif Screencast
[MOVED TO GITLAB] One-frame-per-action GIF recording for optimal quality/size ratio
Stars: ✭ 74 (-5.13%)
Mutual labels:  emacs
Spacemacs Content
Content for the book - Clojure Development with Spacemacs
Stars: ✭ 72 (-7.69%)
Mutual labels:  emacs
Hexo Filter Github Emojis
github emojis for hexo! 🎉
Stars: ✭ 71 (-8.97%)
Mutual labels:  hexo
Hexo Server
Server module for Hexo.
Stars: ✭ 75 (-3.85%)
Mutual labels:  hexo
Jq Mode
Emacs major mode for editing jq queries.
Stars: ✭ 70 (-10.26%)
Mutual labels:  emacs
Hexo Theme Paperbox
A responsive paper-like theme for hexo blog.
Stars: ✭ 76 (-2.56%)
Mutual labels:  hexo
Emacsist
Emacs微信公众号收录文章存档!
Stars: ✭ 70 (-10.26%)
Mutual labels:  emacs
Flutter.el
Flutter tools for Emacs
Stars: ✭ 72 (-7.69%)
Mutual labels:  emacs
Org Kanban
Simple approach to kanban with emacs' org-mode
Stars: ✭ 74 (-5.13%)
Mutual labels:  emacs
Meilidu Hexo
MeiliDu, beatuiful reading theme for Hexo.
Stars: ✭ 78 (+0%)
Mutual labels:  hexo
Org Zettelkasten
An opinionated setup for managing large collections of interlinked org files.
Stars: ✭ 77 (-1.28%)
Mutual labels:  emacs
  • hexo.el Emacs major-mode & tools for [[https://github.com/hexojs/hexo][Hexo]]. σ(´∀`*)

  • Screenshots [[file:screenshots/screenshot_1.png]]

[[file:screenshots/screenshot_2.png]]

  • Requirement
  • hexo
  • Emacs >= 24.3
  • bash or any POSIX-compatible shell
  • Install

=hexo.el= is available on [[https://github.com/melpa/melpa][MELPA]] now.

#+BEGIN_SRC elisp (add-to-list 'load-path "~/path/to/hexo.el/dir") (require 'hexo) #+END_SRC

You can define your function to open a specified hexo repository directly like this:

#+BEGIN_SRC elisp (defun hexo-my-blog () (interactive) (hexo "~/my-blog/")) #+END_SRC

** Not A Bash / Zsh User?

If you're using a shell beyond =bash= / =zsh= (ex: =fish=), you may have set =shell-file-name= to your prefered shell. However this would broken some functions of =hexo.el=. To prevent this, please specify the path to a POSIX-compatible shell.

#+BEGIN_SRC elisp (setq hexo-posix-compatible-shell-file-path "/bin/bash") #+END_SRC

** Org-mode Support =hexo.el= now experimentally supports Org-mode via [[https://github.com/CodeFalling/hexo-renderer-org][CodeFalling's hexo-renderer-org]]. If you encounter any problem, please feel free to open issue for that. Thanks!

Create a [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html][.dir-locals.el]] file at the root path of the hexo repository with the following contents:

#+BEGIN_SRC elisp ((nil . ((hexo-new-format . org)) )) #+END_SRC

Now within this repository, =M-x hexo-new= will generate org-mode format file.

  • Usage =M-x hexo= to use =hexo-mode=.

** Common Commands

The following commands are available in =markdown-mode=, =dired-mode=, =hexo-mode=

| Command | Description | |---------------------------------+----------------------------------------------------------------------------| | hexo-new | Create new post anywhere. | | hexo-move-article | Move article between _post/ and _draft/. | | hexo-touch-files-in-dir-by-time | Touch all files by their timestamp to make files sortable in file-manager. | |---------------------------------+----------------------------------------------------------------------------| | hexo-server-run | Open Hexo server process (posts only / posts + drafts) | | hexo-server-stop | Stop Hexo server process | | hexo-server-deploy | Deploy |

** Commands for Markdown

The following commands are only available in markdown-mode

| Command | Description | |------------------------------------+------------------------------------------------------------------------------------| | hexo-insert-article-link | Insert a link to specific article in _posts/. | | hexo-insert-file-link | Insert a link to file. (not article) | | hexo-update-current-article-date | Update article's date stamp by current time. This may change its permanent link! | | hexo-follow-post-link | Open the article file link under the cursor. Hello |

** Commands for hexo-mode

The following commands & key-bindings are available in hexo-mode.

#+BEGIN_QUOTE Prefix hexo-command- means the function is only available under hexo-mode #+END_QUOTE

| Command | Key | Description | |------------------------------------+---------+----------------------------------------------------------------------------| | File | | | |------------------------------------+---------+----------------------------------------------------------------------------| | hexo-command-open-file | RET | Open file | | hexo-command-show-article-info | SPC | Show article info | | hexo-new | n | Create file | | hexo-command-rename-file | R, [f2] | Rename file | | hexo-command-delete-file | D | Delete file | |------------------------------------+---------+----------------------------------------------------------------------------| | View | | | |------------------------------------+---------+----------------------------------------------------------------------------| | hexo-command-revert-tabulated-list | g | Refresh | | tabulated-list-sort | S | Sort according to this column header | | hexo-command-filter-tag | f | Filter article by tag | |------------------------------------+---------+----------------------------------------------------------------------------| | Edit | | | |------------------------------------+---------+----------------------------------------------------------------------------| | hexo-touch-files-in-dir-by-time | T T | touch all files by their timestamp to make files sortable in file-manager. | | hexo-toggle-article-status | T S | Toggle article status (Move file between _posts/ and _drafts/) | | hexo-command-tags-toggler | t | Add / Remove tags of a single article | |------------------------------------+---------+----------------------------------------------------------------------------| | Mark | | | |------------------------------------+---------+----------------------------------------------------------------------------| | hexo-command-mark | m | Mark article | | hexo-command-unmark | u | Unmark article | | hexo-command-add-tags | M a | Add tags to all marked articles | | hexo-command-remove-tags | M r | Remove tags from all marked articles | |------------------------------------+---------+----------------------------------------------------------------------------| | Server | | | |------------------------------------+---------+----------------------------------------------------------------------------| | hexo-server-run | s r | Open Hexo server process (posts only / posts + drafts) | | hexo-server-stop | s s | Stop Hexo server process | | hexo-server-deploy | s d | Deploy | |------------------------------------+---------+----------------------------------------------------------------------------| | Mode | | | |------------------------------------+---------+----------------------------------------------------------------------------| | hexo-command-help | h, ? | Show key-binding cheat sheet | | kill-buffer-and-window | Q | Quit |

  • License MIT

Copyright (c) 2014-2016 ono hiroko (kuanyui)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].