Skip to content

Instantly share code, notes, and snippets.

@youz
youz / shell-highlighting.l
Created August 21, 2012 08:39
shell-modeでキーワードハイライト
(in-package :editor)
(defvar *shell-mode-keyword-file* "Shell")
(defvar *shell-mode-keyword-table* nil)
(defun shell-mode-enable-highlighting ()
(when *shell-mode-keyword-file*
(unless *shell-mode-keyword-table*
(setq *shell-mode-keyword-table*
(load-keyword-file *shell-mode-keyword-file*)))
@youz
youz / go-mode.l
Created May 8, 2012 08:27
go-mode.el をxyzzyへ移植(途中)
;;; -*- mode:lisp;package:editor -*-
;;; go-mode.l --- Major mode for the Go programming language
;;; Commentary:
;;; To do:
;; * Indentation is *almost* identical to gofmt
;; ** We think struct literal keys are labels and outdent them
@youz
youz / example.md
Created March 15, 2012 07:17
table view mode for #xyzzy
(let ((fields '("Buffer" "Size" "Path"))
      (data (loop for b in (buffer-list) collect
              (list (buffer-name b) (buffer-size b) (get-buffer-file-name b))))
      (header '(("Buffer List" :bold t :foreground 7 :background 14 :extend t))))
  (tbl:create-table-view "*buffers*" fields data :header-lines header))
@youz
youz / quick-reference.l
Created February 16, 2012 08:33
xy-reference:lookup の代替品 #xyzzy
;;; -*- mode:lisp; package:quick-reference -*-
;; Copyright (c) 2012 Yousuke Ushiki
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
;; in the Software without restriction, including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
;; copies of the Software, and to permit persons to whom the Software is
;; furnished to do so, subject to the following conditions:
@youz
youz / fizzbuzz.l
Created February 10, 2012 05:05
xl-open-uri/provider/fizzbuzz.l
(eval-when (:compile-toplevel :load-toplevel :execute)
(require "http-client")
(require "xl-open-uri/package"))
(defpackage :xl-open-uri.provider.fizzbuzz
(:use :lisp :editor))
(in-package :xl-open-uri.provider.fizzbuzz)
(defun open-uri (uri &rest opts)
@youz
youz / battery.l
Created January 30, 2012 07:52
#xyzzy でバッテリーの状態を確認
;;; -*- mode:lisp; package:battery -*-
(provide "battery")
(defpackage :battery
(:use :lisp :editor))
(in-package :battery)
(export '(get-status))
@youz
youz / .xyzzy
Created January 20, 2012 08:39
xyzzy lisp repl
(require "ac-mode-lisp")
(require "ldoc2")
(require "paren")
(require "xl-repl")
(push 'lisp-repl-mode ed::*ldoc-activated-mode-list*)
(push 'lisp-repl-mode ed::*ac-mode-lisp-mode*)
;; *startup-hook*の前に*lisp-mode-hook*も実行するので
;; 被ってる物は不要
@youz
youz / helloworld.ppn
Created March 29, 2011 12:04
grassの w → "ぽ" W → "ー" v → "ん"
ref. http://twitter.com/gengar68/status/52532965556748288
ぽんぽーぽぽぽぽーぽぽぽぽぽぽーーーーーぽーーーーーぽぽぽぽんぽぽぽぽーーーぽぽ
ーぽぽーーーーーーぽぽぽぽーぽぽんぽーーぽーぽぽんぽぽーーぽんぽーーーぽぽーーー
ーーぽぽぽーぽぽーーーーーーぽーーーーーーーぽーーーーぽーーーーーぽーーーーーー
ぽーーーーーーーーーーーーーーぽぽぽぽぽぽぽぽーぽーぽーーーぽぽーーーーぽぽぽぽ
ぽぽぽーーーーーぽぽぽぽぽぽぽーーーーーーぽぽぽぽぽぽぽーーーーーーーーーーーー
ーーーーーーーーーぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽーぽぽぽぽぽぽぽぽぽ
ぽぽぽぽぽぽぽぽぽぽぽーーぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽぽーーぽぽぽぽぽぽぽぽぽ
ぽぽぽぽぽーーぽぽぽぽぽぽぽーーぽぽぽぽぽぽぽぽーーーぽぽぽぽぽぽぽぽーーーーー
@youz
youz / dom.l
Created November 18, 2010 15:16
htmlからDOMツリーっぽいリストを作成 (要 www-mode) #xyzzy
;;; -*- mode:lisp; package:dom -*-
(eval-when (:compile-toplevel :load-toplevel :execute)
(require "xml-http-request")
(require "www/www"))
(defpackage dom
(:use :lisp :editor))
(in-package "dom")
@youz
youz / retest.l
Created September 26, 2010 14:28
regexp-readerのテスト #xyzzy
(require "regexp-reader") ; http://gist.github.com/399913
(require "reut") ; http://github.com/youz/xyzzy-lisp/blob/master/reut.l
(defpackage :regexp-test
(:use :lisp :reut))
(in-package :regexp-test)
;;; cl-ppcre-2.0.1/test/simpleより