Skip to content

Instantly share code, notes, and snippets.

@myuhe
myuhe / anything-c-yasnippet.el
Created November 23, 2010 10:39
yanippet 0.7.0で動作するよう修正した
;;; 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.
@kiwanami
kiwanami / e2wm-direx-plugin.el
Created March 8, 2012 03:05
e2wm plugin for direx file list
;;; 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))
@mrvdb
mrvdb / gist:3111823
Created July 14, 2012 15:25
Automatic asynchronous org-mobile-push in idle time.
;; 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
@nyergler
nyergler / kenobi.el
Created July 28, 2013 20:31
Personal Emacs configuration for detecting virtual environments, adding egg directories, and allowing extra paths to be added to the Jedi auto-completion server.
(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)))