config.iniファイルを編集する
apt-cyg -m http://ftp.iij.ad.jp/pub/sygwin/ update
apt-cyg update
(defun split-method-call (str) | |
(let* ((strs (coerce (jcall "split" str "/") 'list)) | |
(method (car (last strs))) | |
(class (format nil "~{~A~^/~}" (butlast strs)))) | |
(list class method))) | |
(defun static-field-p (str) | |
(destructuring-bind (class field) | |
(split-method-call str) | |
(and (not (string= "" class)) |
(require 'cl) | |
(defgroup popup-forward-backward nil | |
"Minor mode for popping up lines which surround forward/backward point") | |
(defcustom popup-forward-backward:idle-delay 5 | |
"Number of seconds of idle time to wait before popping up" | |
:type 'number | |
:group 'popup-forward-backward) |
(require 'cl) | |
(defvar popup-matching-paren-open-parens "([{\"") | |
(defvar popup-matching-paren-close-parens ")]}\"") | |
(defun popup-matching-paren (&optional lines) | |
"popup 1+`lines'*2 lines" | |
(interactive) | |
(unless lines | |
(setq lines 0)) |
;;; -*- coding:utf-8 mode:emacs-lisp -*- | |
;;; helm-eshell-dirstack.el | |
(eval-when-compile (require 'cl)) | |
(require 'helm) | |
(require 'eshell) | |
(defun helm-eshell-dirstack-popd (n) | |
(eshell/popd (format "+%d" n)) | |
(eshell-begin-on-new-line) |
# Octaveでチャープ信号を書く | |
# E(t) = E0 cos(2πfct + at^2) | |
# t: 時間変化 | |
# E0: 振幅 | |
# fc: 中心周波数 | |
# a: チャープ定数 (a/π: チャープ率) | |
function fn = mkchirp(E0, fc, a) | |
fn = @(t) E0 * cos(2 * pi * fc * t + a * power(t, 2)); | |
endfunction; |
(asdf:load-system :cffi) | |
(defpackage :dasm | |
(:export | |
;; type | |
dword | |
;; constant | |
__LIBDASM_VERSION__ | |
GET_VERSION_MAJOR | |
GET_VERSION_MINOR1 |
(eval-when-compile (require 'cl)) | |
(require 'yasnippet) | |
(require 'easy-mmode) | |
(defvar *yas-elargs/active* nil) | |
(define-minor-mode yas-elargs-mode | |
"emacs lisp snippet auto generation mode" | |
:init-value nil |