Skip to content

Instantly share code, notes, and snippets.

View TeMPOraL's full-sized avatar

Jacek Złydach TeMPOraL

View GitHub Profile
@TeMPOraL
TeMPOraL / emacs-directory-server.el
Last active May 29, 2018 04:01
Quickly serving files and directories via HTTP, with Emacs!
(defvar my/file-server nil "Is the file server running? Holds an instance if so.")
(defalias 'my/send-directory-list 'ws-send-directory-list)
(defun my/ws-start (handlers port &optional log-buffer &rest network-args)
"Like `ws-start', but unbroken for Emacs 25+."
(let ((server (make-instance 'ws-server :handlers handlers :port port))
(log (when log-buffer (get-buffer-create log-buffer))))
(setf (process server)
(apply
@TeMPOraL
TeMPOraL / stumpwmrc-part.lisp
Created October 24, 2018 05:34
.stumpwmrc - modeline with Dropbox and current org clock task
(defparameter *org-clock-current-task* "[N/A]")
(defparameter *dropbox-current-status* "[Dropbox current status here]")
;;; (...)
(defun current-dropbox ()
;; TODO colors
(first-line-only (run-external-program "dropbox" '("status"))))
;;; mode line
(setf *mode-line-timeout* 1)