Guest User

Untitled

a guest
Jan 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. ;;; Time-stamp: <2011-07-22 18:05:48 namai>
  2. ;;;
  3.  
  4. (add-to-list 'load-path "~/.emacs.d/elisp/")
  5. ;; auto-install
  6. (setq auto-install-directory "~/.emacs.d/auto-install/")
  7. (add-to-list 'load-path auto-install-directory)
  8. (add-to-list 'load-path (expand-file-name "~/.emacs.d/auto-install"))
  9. ;;(add-to-list 'custom-theme-load-path "~/.emacs.d/elisp/")
  10. (require 'auto-install)
  11. ;;(auto-install-update-emacswiki-package-name t)
  12. ;(auto-install-compatibility-setup)
  13. ;(setq ediff-window-setup-function 'ediff-setup-window-plain)
  14.  
  15. ;; C-h
  16. (global-set-key (kbd "C-h") 'delete-backward-char)
  17. ;; forward-word
  18. ;;(global-set-key (kbd "C-f") 'forward-word)
  19. ;;(global-set-key (kbd "C-b") 'backward-word)
  20.  
  21. ;; *scratch*のメッセージを消す
  22. (setq initial-scratch-message nil)
  23.  
  24. ;;; ホイールマウス
  25. (mouse-wheel-mode t)
  26. (setq mouse-wheel-follow-mouse t)
  27. ;;; 対応する括弧を光らせる。
  28. (show-paren-mode 1)
  29.  
  30. ;;; バックアップファイルを作らない
  31. (setq backup-inhibited t)
  32.  
  33. ;;; 終了時にオートセーブファイルを消す
  34. (setq delete-auto-save-files t)
  35.  
  36. ;;; emacs -nw で起動した時にメニューバーを消す
  37. (if window-system (menu-bar-mode 1) (menu-bar-mode -1))
  38.  
  39. ;;; 現在の関数名をモードラインに表示
  40. (which-function-mode 1)
  41.  
  42. ;;; Time stamp
  43. ;;; ファイルの中で最初に表れる「Last modified:」という文字列が
  44. ;;; あったらそこに「曜日 月 日 時間 年 タイムゾーン」の順にタイムスタンプ
  45. (require 'time-stamp)
  46. ;; (if (not (memq 'time-stamp write-file-hooks))
  47. ;; (setq write-file-hooks
  48. ;; (cons 'time-stamp write-file-hooks)))
  49. ;; Interactively Do Things (highly recommended, but not strictly required)
  50. (require 'ido)
  51. (ido-mode t)
  52.  
  53. ;;shell-mode
  54. (require 'multi-term)
  55. (setq multi-term-program shell-file-name)
  56. ;;(add-to-list 'term-unbind-key-list '"M-x")
  57. (autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
  58. (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
  59. (global-set-key (kbd "C-c t") '(lambda ()
  60. (interactive)
  61. (multi-term)))
  62.  
  63. (require 'shell-pop)
  64. ;; multi-term に対応
  65. (add-to-list 'shell-pop-internal-mode-list '("multi-term" "*terminal<1>*" '(lambda () (multi-term))))
  66. (shell-pop-set-internal-mode "multi-term")
  67. ;; 25% の高さに分割する
  68. (shell-pop-set-window-height 50)
  69. (shell-pop-set-internal-mode-shell shell-file-name)
  70. ;; ショートカットも好みで変更してください
  71. (global-set-key (kbd "C-x t") 'shell-pop)
  72. (put 'downcase-region 'disabled nil)
  73.  
  74.  
  75. ;; dired-x
  76. (require 'dired-x)
  77. ;; リネームが便利にwdired
  78. (require 'wdired)
  79. (define-key dired-mode-map "r" 'wdired-change-to-wdired-mode)
  80.  
  81. ;; termでバッファ間の共有がしたい
  82. ;; (add-hook 'term-mode-hook '(lambda ()
  83. ;; (define-key term-raw-map "\C-y" 'term-paste)
  84. ;; (define-key term-raw-map "\C-q" 'move-beginning-of-line)
  85. ;; (define-key term-raw-map "\C-r" 'term-send-raw)
  86. ;; (define-key term-raw-map "\C-s" 'term-send-raw)
  87. ;; (define-key term-raw-map "\C-f" 'forward-char)
  88. ;; (define-key term-raw-map "\C-b" 'backward-char)
  89. ;; (define-key term-raw-map "\C-t" 'set-mark-command)
  90. ;; (define-key term-raw-map (kbd "ESC") 'term-send-raw)
  91. ;; (define-key term-raw-map [delete] 'term-send-raw)
  92. ;; (define-key term-raw-map "\C-z"
  93. ;; (lookup-key (current-global-map) "\C-z"))))
  94. ;;; バックアップファイルを作らない
  95. (setq backup-inhibited t)
  96. ;;; 終了時にオートセーブファイルを消す
  97. (setq delete-auto-save-files t)
  98. (load "dark-theme")
  99.  
  100. ;; cperl-mode
  101. (defalias 'perl-mode 'cperl-mode)
  102. (setq auto-mode-alist (cons '("\\.t$" . cperl-mode) auto-mode-alist))
  103. (add-hook 'cperl-mode-hook
  104. (function (lambda ()
  105. (set-face-background 'cperl-hash-face "black")
  106. (set-face-background 'cperl-array-face "black")
  107. )))
  108.  
  109. ;; cmigemo
  110. (require 'migemo)
  111. (setq migemo-command "cmigemo")
  112. (setq migemo-options '("-q" "--emacs"))
  113. (setq migemo-dictionary "/usr/local/share/migemo/utf-8/migemo-dict")
  114. (setq migemo-user-dictionary nil)
  115. (setq migemo-regex-dictionary nil)
  116. (setq migemo-coding-system 'utf-8-unix)
  117. (load-library "migemo")
  118. (migemo-init)
  119. (set-process-query-on-exit-flag migemo-process nil)
  120.  
  121. ;; anything.el
  122. (require 'anything)
Add Comment
Please, Sign In to add comment