diff --git a/.emacs.d/elpa/archives/ELPA/archive-contents b/.emacs.d/elpa/archives/ELPA/archive-contents new file mode 100644 index 0000000..0a78835 --- /dev/null +++ b/.emacs.d/elpa/archives/ELPA/archive-contents @@ -0,0 +1,447 @@ +(1 + (load-relative . + [(0 1) + nil "relative file load (within a multi-file Emacs package)" single]) + (test-unit . + [(0 1) + nil "Unit Test Framework for Emacs Lisp " single]) + (zenburn . + [(1 8) + nil "just some alien fruit salad to keep you in the zone" single]) + (multi-project . + [(0 0 1) + nil "Work with multiple projects" single]) + (hungry-delete . + [(1 0) + nil "hungry delete minor mode" single]) + (Save-visited-files . + [(1 2) + nil "save opened files across sessions" single]) + (c-eldoc . + [(0 6) + nil "helpful description of the arguments to C functions" single]) + (mv-shell . + [(1 0) + nil "keep buffers in sync with filename throughout 'mv'commands in shell-mode." single]) + (diff-git . + [(0 1 1) + nil "Git integration with diff-mode" single]) + (html-script-src . + [(0 0 2) + nil "Insert " (buffer-substring-no-properties (point-min) (point-max)))) -; (current-buffer))) - -; Livedown -; git clone https://github.com/shime/emacs-livedown.git ~/.emacs.d/emacs-livedown -; sudo npm install -g livedown -(add-to-list 'load-path (expand-file-name "~/.emacs.d/emacs-livedown")) +;; Livedown +;;; sudo npm install -g livedown +;;; (add-to-list 'load-path (expand-file-name "~/.emacs.d/emacs-livedown")) (require 'livedown) (custom-set-variables @@ -119,7 +87,6 @@ 'mew-draft-kill 'mew-send-hook)) - ;;; --- Look & Feel --- ;; no toolbar: diff --git a/.emacs.d/awesome-tab.el b/.emacs.d/plugins/awesome-tab.el similarity index 100% rename from .emacs.d/awesome-tab.el rename to .emacs.d/plugins/awesome-tab.el diff --git a/.emacs.d/plugins/livedown.el b/.emacs.d/plugins/livedown.el new file mode 100644 index 0000000..07762b8 --- /dev/null +++ b/.emacs.d/plugins/livedown.el @@ -0,0 +1,75 @@ +;;; livedown.el --- Realtime Markdown previews for Emacs. + +;; Copyright (C) 2014-2016 Hrvoje Simic + +;; Author: Hrvoje Simic +;; Version: 1.0.0 +;; Keywords: markdown, preview, live +;; URL: https://github.com/shime/emacs-livedown + +;;; Commentary: + +;; Realtime Markdown previews for Emacs. + +;;; Code: + +(defgroup livedown nil + "Realtime Markdown previews" + :group 'livedown + :prefix "livedown-") + +(defcustom livedown-port 1337 + "Port on which livedown server will run." + :type 'integer + :group 'livedown) + +(defcustom livedown-open t + "Open browser automatically." + :type 'boolean + :group 'livedown) + +(defcustom livedown-browser nil + "Open alternative browser." + :type 'string + :group 'livedown) + +(defcustom livedown-autostart nil + "Auto-open previews when opening markdown files." + :type 'boolean + :group 'livedown) + +;;;###autoload +(defun livedown-preview () + "Preview the current file in livedown." + (interactive) + + (call-process-shell-command + (format "livedown stop --port %s &" + livedown-port)) + + (start-process-shell-command + (format "emacs-livedown") + (format "emacs-livedown-buffer") + (format "livedown start %s --port %s %s %s " + buffer-file-name + livedown-port + (if livedown-browser (concat "--browser " livedown-browser) "") + (if livedown-open "--open" ""))) + (print (format "%s rendered @ %s" buffer-file-name livedown-port) (get-buffer "emacs-livedown-buffer"))) + +;;;###autoload +(defun livedown-kill (&optional async) + "Stops the livedown process." + (interactive) + (let ((stop-livedown (if async 'async-shell-command 'call-process-shell-command))) + (funcall stop-livedown + (format "livedown stop --port %s &" + livedown-port)))) + +(if livedown-autostart + (eval-after-load 'markdown-mode '(livedown-preview))) + +(add-hook 'kill-emacs-query-functions (lambda () (livedown-kill t))) + +(provide 'livedown) +;;; livedown.el ends here diff --git a/.emacs.d/transient/history.el b/.emacs.d/transient/history.el new file mode 100644 index 0000000..90b5a84 --- /dev/null +++ b/.emacs.d/transient/history.el @@ -0,0 +1 @@ +nil \ No newline at end of file