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
(defun duplicate-line(arg) | |
(interactive "nTimes:") | |
(or (and (numberp arg) (> arg 0)) (setq arg 1)) | |
(beginning-of-line) | |
(kill-whole-line) | |
(yank) | |
(multi-yank (- arg 1))) | |
(defun multi-yank(arg) | |
"yank [arg] times." | |
(interactive "p") |
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
(defun c-add-new-line-below() | |
(interactive) | |
(move-end-of-line 1) | |
(newline-and-indent)) | |
(defun c-add-new-line-above() | |
(interactive) | |
(back-to-indentation) | |
(split-line)) | |
(define-key c-mode-map (kbd "C-o") 'c-add-new-line-below) | |
(define-key c-mode-map (kbd "M-o") 'c-add-new-line-above) |
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
(defun add-new-line-below(&optional arg) | |
"adds new line [arg]th below current line. | |
This command is compatible with relative-linum.el." | |
(interactive "p") | |
(if (not (numberp arg)) | |
(setq arg 1)) | |
(next-line (- arg 1)) | |
(move-end-of-line 1) | |
(newline-and-indent)) | |
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
# Created by newuser for 5.0.2 | |
autoload -U compinit | |
compinit | |
export LANG=ja_JP.UTF-8 | |
PROMPT="%F{green}%n %F{yellow}%~%F{white} | |
$ " | |
RPROMPT="%*" | |
PROMPT2="%_%% " | |
SPROMPT="%r is correct?[n,y,a,e]: " |
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
;; insert 香風チノ in *splash* buffer | |
(defun open-chino-buffer() | |
(interactive) | |
(switch-to-buffer (get-buffer-create "*splash*")) | |
(setq fancy-splash-image "address") | |
(setq img (create-image fancy-splash-image)) | |
(let* ((ww (window-width (selected-window))) | |
(image-width (car (image-size img)))) | |
(dotimes (i (/ (- ww image-width) 2) 1) | |
(insert " ")) |
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
let g:syntastic_ignore_files=['\.tex$'] |
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
(message "C= C= C= ┌(;・_・)┘トコトコ") |
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
(message "_(┐「ε:)_") |
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
(message "\(・ω・\)SAN値!(/・ω・)/ピンチ!") |
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
Set ws = CreateObject("Wscript.Shell") | |
ws.run "cmd /c myemacs.bat", vbhide |
OlderNewer