This file contains hidden or 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
| (eval-when-compile | |
| (require 'cl)) | |
| (require 'hi-lock) | |
| (require 'thingatpt) | |
| (defgroup easy-highlight nil | |
| "Easy to use `hi-lock'" | |
| :group 'faces | |
| :prefix "easy-highlight:") |
This file contains hidden or 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
| (eval-when-compile | |
| (require 'cl)) | |
| (require 'url) | |
| (require 'url-http) | |
| (require 'json) | |
| (defvar github-markdown:url "https://api.github.com/markdown") | |
| (defvar github-markdown:url-raw "https://api.github.com/markdown/raw") |
This file contains hidden or 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
| #!perl | |
| use strict; | |
| use warnings; | |
| use POSIX (); | |
| sysopen my $in, "/proc/net/dev", POSIX::O_RDONLY or die "Can't open file: $!"; | |
| open my $out, '>', 'output.log' or die "Can't open file: $!"; | |
| #$out->autoflush(1); # <== バッファリングしない(autoflush $out, 1; も可) |
This file contains hidden or 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
| ;; flymake setting | |
| (require 'flymake) | |
| ;; Show error message under current line | |
| (require 'popup) | |
| (defun flymake-display-err-menu-for-current-line () | |
| (interactive) | |
| (let* ((line (flymake-current-line-no)) | |
| (line-err-info (flymake-find-err-info flymake-err-info line)) | |
| (error-infos (nth 0 line-err-info)) |
This file contains hidden or 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
| ;; Please see http://d.hatena.ne.jp/kitokitoki/20111217/p1 | |
| (defvar helm-c-source-ghc-mod | |
| '((name . "GHC Browse Documennt") | |
| (init . helm-c-source-ghc-mod) | |
| (candidates-in-buffer) | |
| (candidate-number-limit . 9999) | |
| (action . helm-c-source-ghc-mod-action))) | |
| (defun helm-c-source-ghc-mod () |
This file contains hidden or 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
| (deftheme molokai | |
| "Color theme based on the Molokai color scheme for vim.") | |
| (custom-theme-set-faces | |
| 'molokai | |
| '(cursor ((t (:foreground "#F8F8F0")))) | |
| '(default ((t (:foreground "#F8F8F2" :background "#1B1D1E")))) | |
| '(bold ((t (:weight bold)))) | |
| '(bold-italic ((t (:weight bold :slant italic)))) |
This file contains hidden or 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 haskell-block-commend-region (start end) | |
| (interactive "r") | |
| (save-excursion | |
| (let (end-marker) | |
| (goto-char end) | |
| (setq end-marker (point-marker)) | |
| (goto-char start) | |
| (insert "{-\n") | |
| (goto-char (marker-position end-marker)) | |
| (insert "-}")))) |
This file contains hidden or 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
| ;; help utilities | |
| (defun my/python-help () | |
| (interactive) | |
| (let ((module (read-string "Pydoc module: " )) | |
| (buf (get-buffer-create "*Python Help*"))) | |
| (with-current-buffer (get-buffer-create buf) | |
| (erase-buffer) | |
| (call-process-shell-command (format "pydoc %s" module) nil t t) | |
| (goto-char (point-min))) | |
| (pop-to-buffer buf))) |
This file contains hidden or 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
| ;;; helm-silver-searcher.el --- | |
| ;; Copyright (C) 2012 by Syohei YOSHIDA | |
| ;; Author: Syohei YOSHIDA <[email protected]> | |
| ;; URL: | |
| ;; Version: 0.01 | |
| ;; This program is free software; you can redistribute it and/or modify | |
| ;; it under the terms of the GNU General Public License as published by |
This file contains hidden or 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
| #!/usr/bin/python | |
| from pkgutil import iter_modules | |
| a = iter_modules() | |
| while True: | |
| try: | |
| x = a.next() | |
| except: |