Skip to content

Instantly share code, notes, and snippets.

@nyergler
nyergler / kenobi.el
Created Jul 28, 2013
Personal Emacs configuration for detecting virtual environments, adding egg directories, and allowing extra paths to be added to the Jedi auto-completion server.
View kenobi.el
(add-hook 'hack-local-variables-hook 'run-local-vars-mode-hook)
(defun run-local-vars-mode-hook ()
"Run a hook for the major-mode after the local variables have been processed."
(run-hooks (intern (concat (symbol-name major-mode) "-local-vars-hook"))))
(defun detect_buffer_venv (buffer-name)
(let ((buffer-dir (file-name-directory buffer-name)))
@mrvdb
mrvdb / gist:3111823
Created Jul 14, 2012
Automatic asynchronous org-mobile-push in idle time.
View gist:3111823
;; Show a notification when a push has been completed
(require 'notifications)
(defun notify-push (result)
(notifications-notify
:title "Push complete"
:body (format "Org-mobile-push: %s" result)
)
)
;; Fork the work of pushing to mobile
@kiwanami
kiwanami / e2wm-direx-plugin.el
Created Mar 8, 2012
e2wm plugin for direx file list
View e2wm-direx-plugin.el
;;; direx plugin
(require 'direx)
(require 'direx-project)
(setq direx:leaf-icon " "
direx:open-icon ""
direx:closed-icon "")
(defun e2wm:def-plugin-direx (frame wm winfo)
(let* ((buf (e2wm:history-get-main-buffer))
@myuhe
myuhe / anything-c-yasnippet.el
Created Nov 23, 2010
yanippet 0.7.0で動作するよう修正した
View anything-c-yasnippet.el
;;; anything-c-yasnippet.el --- anything config for yasnippet.el
;; Author: Kenji.I (Kenji Imakado) <ken.imakaado@gmail.com>
;; Version: 0.6.1
;; Keywords: anything yasnippet
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.