This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; slime-company.el --- slime completion backend for company mode | |
;; | |
;; Based on slime-company.el by Ole Arndt, this file is maintained | |
;; to always be compatible with the latest ELPA Slime. | |
;; | |
;;; Installation. | |
;; | |
;; Add this to your .emacs: | |
;; | |
;; (add-to-list 'load-path "<directory-of-this-file>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/src/swank-clojure/swank/commands/basic.clj:299 | |
The following function is used in slime-edit-definition. | |
It blows up on namespace 'user' and thus thwarts jumping to | |
definitions in the user namespace. | |
(defn- namespace-to-path [ns] | |
(let [#^String ns-str (name (ns-name ns))] | |
(-> ns-str | |
(.substring 0 (.lastIndexOf ns-str ".")) <------ 'user' contains no '.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; ahk-mode.el --- major mode for editing AutoHotKey scripts for X/GNU Emacs | |
;; Copyright (C) 2005 Robert Widhopf-Fenk | |
;; Addendum 2009: Hacked to play nicely with other modes. | |
;; Fixed setting of global variables that should be local instead. | |
;; Author: Robert Widhopf-Fenk | |
;; Keywords: AutoHotKey, major mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-key company-active-map "\t" 'company-yasnippet-or-completion) | |
(defun company-yasnippet-or-completion () | |
(interactive) | |
(if (yas/expansion-at-point) | |
(progn (company-abort) | |
(yas/expand)) | |
(company-complete-common))) | |
(defun yas/expansion-at-point () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Usage: Evaluate file, then run (toggle-swank-clojure-reroute). | |
(defvar swank-clojure-cmd-reroute-code (replace-regexp-in-string "\n+" ";" | |
"swank_clojure_cmd = ARGV.dup | |
ARGV.clear | |
swank_init_forms = [] | |
loop { swank_init_forms << (form = gets); break if form.include? 'start-server' } | |
eval_string = swank_init_forms.map(&:chomp).compact.join |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'moz) | |
;;; Usage | |
;; Run M-x moz-reload-mode to switch moz-reload on/off in the | |
;; current buffer. | |
;; When active, every change in the buffer triggers Firefox | |
;; to reload its current page. | |
(defvar moz-reload-buffers '()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'moz) | |
;;; Usage | |
;; Run M-x moz-reload-mode to switch moz-reload on/off in the | |
;; current buffer. | |
;; When active, every change in the buffer triggers Firefox | |
;; to reload its current page. | |
(define-minor-mode moz-reload-mode | |
"Moz Reload Minor Mode" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'moz) | |
;;; Usage | |
;; Run M-x moz-reload-mode to switch moz-reload on/off in the | |
;; current buffer. | |
;; When active, every change in the buffer triggers Firefox | |
;; to reload its current page. | |
(defvar moz-reload-buffers '()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* vim: ts=4 noet ai : | |
$Id: $ | |
Link Original Image - (c) 2005-2009 Johannes la Poutre | |
Greasemonkey User Script; looks for thumbnail images from Flickr. | |
Links these images to their original uploaded (full size) | |
versions. This also works for any page where thumbnails are | |
displayed directly from the Flickr servers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Installation: | |
;; Add the following to your emacs setup: | |
;; (add-to-list 'load-path "<directory-of-this-file>") | |
;; (add-hook 'inf-ruby-mode-hook (lambda () (require 'inf-ruby-company))) | |
(require 'company) | |
(defun inf-ruby-company-backend (command &optional arg &rest ignored) | |
(case command | |
('prefix |
OlderNewer