Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

el-get

  • Loading branch information...
commit 38e17a3460354190b601997a08b54502ff23b5f0 1 parent 8db339b
Seiji Toyama authored
2  .emacs.d/init/00-init.el
View
@@ -26,7 +26,7 @@
(show-paren-mode 1)
(transient-mark-mode t)
-(setq-default tab-width 4 indent-tabs-mode nil)
+(setq-default tab-width 4 indent-tabs-mode t)
(setq c-basic-offset 4)
(fset 'yes-or-no-p 'y-or-n-p)
13 .emacs.d/init/01-keybind.el
View
@@ -1,5 +1,3 @@
-(require 'sticky)
-(use-sticky-key ";" sticky-alist:en)
;===================================
;; key binding
;===================================
@@ -8,6 +6,8 @@
(setq next-line-add-newlines t)
+(define-key global-map (kbd "RET") 'newline-and-indent)
+
;; \C-w
(defun kill-region-or-backward-kill-word (arg)
(interactive "p")
@@ -40,5 +40,10 @@
(interactive)
(shell-command "/usr/bin/osascript /Users/seiji/bin/chrome_scroll.scpt prev"))
-(global-set-key (kbd "C-M-v") 'chrome-scroll-next)
-(global-set-key (kbd "M-V") 'chrome-scroll-previous)
+;(global-set-key (kbd "C-V") 'chrome-scroll-next)
+;(global-set-key (kbd "M-V") 'chrome-scroll-previous)
+
+
+
+
+
9 .emacs.d/init/03-plugin.el
View
@@ -1,3 +1,6 @@
-(setq recentf-max-sved-item 5000)
-(setq recentf-exclide '("TAGS$" "/var/tmp/"))
-(require 'recentf-ext)
+;;; 03-plugin.el ---
+
+;; Copyright (C) 2012 Seiji
+
+;; Author: Seiji <seiji@sma.local>
+;; Keywords:
47 .emacs.d/init/21-program.el
View
@@ -41,3 +41,50 @@
(add-hook 'css-mode-hook '(lambda ()
(setq css-indent-level 2)
(setq css-indent-offset 2))))
+
+;auto-complete.el --- settings for auto-complete
+;Code:
+(eval-when-compile
+ (require 'cl))
+
+(require 'auto-complete-config)
+(require 'auto-complete+)
+(ac-config-default)
+(setq ac-modes (append ac-modes '(lua-mode cmake-mode csharp-mode)))
+
+ ; After do this, isearch any string, M-: (match-data) always
+ ; return the list whose elements is integer
+(global-auto-complete-mode 1)
+
+(setq help-xref-following nil)
+ ; (bind-keys '(("RET" . ac-complete)
+ ; ; ("RET" nil)
+ ; ; ("M-j" nil)
+ ; ) ac-complete-mode-map)
+
+(add-to-list 'ac-dictionary-directories (expand-file-name "ac-dict" "~/.emacs.d/dict"))
+
+(setq ac-auto-show-menu t
+ ac-auto-start t
+ ac-dwim t
+ ac-candidate-limit ac-menu-height
+ ac-quick-help-delay .5
+ ac-disable-faces nil)
+
+(set-default 'ac-sources
+ '(ac-source-semantic-raw
+ ac-source-yasnippet
+ ac-source-dictionary
+ ac-source-abbrev
+ ac-source-words-in-buffer
+ ac-source-words-in-same-mode-buffers
+ ac-source-imenu
+ ac-source-files-in-current-dir
+ ac-source-filename))
+
+;auto-complete.el ends here
+
+
+
+
+
10 .emacs.d/init/22-c.el
View
@@ -10,6 +10,7 @@
(add-hook 'c-mode-hook
'(lambda ()
+ (define-key c-mode-map "\C-c\C-c" 'quickrun)
(define-key c-mode-map "\C-cb" 'c-begin-comment-box)
(define-key c-mode-map "\C-ce" 'c-end-comment-box)))
@@ -19,3 +20,12 @@
+
+
+
+
+
+
+
+
+
24 .emacs.d/init/24-csharp.el
View
@@ -1,4 +1,26 @@
-
+;(require 'csharp-mode)
(setq auto-mode-alist
(append '(("\\.cs$" . csharp-mode)) auto-mode-alist))
+(add-hook 'csharp-mode-hook
+ '(lambda ()
+ (setq compile-command
+ (concat "mcs " (buffer-file-name) " && mono "
+ (replace-regexp-in-string "\.cs$" ".exe"
+ (buffer-file-name (current-buffer)))))
+ (define-key csharp-mode-map "\C-c\C-c" 'compile)
+ (c-set-offset 'substatement-open 0)
+ (c-set-offset 'case-label '+)
+ (c-set-offset 'arglist-intro '+)
+ (c-set-offset 'arglist-close 0)
+ (hs-minor-mode)
+))
+(push '(csharp-mode
+ "\\(^\\s *#\\s *region\\b\\)\\|{"
+ "\\(^\\s *#\\s *endregion\\b\\)\\|}"
+ "/[*/]"
+ nil
+ hs-c-like-adjust-block-beginning)
+ hs-special-modes-alist)
+
+
2  .emacs.d/init/26-perl.el
View
@@ -23,3 +23,5 @@
(cperl-define-key "\C-c\C-c" 'compile)
)
)
+
+
17 .emacs.d/init/27-ruby.el
View
@@ -0,0 +1,17 @@
+(add-hook 'ruby-mode-hook
+ '(lambda ()
+ (define-key ruby-mode-map "\C-c\C-c" 'quickrun)
+))
+
+
+
+
+
+
+
+
+
+
+
+
+
3  .emacs.d/init/99-end.el
View
@@ -0,0 +1,3 @@
+(require 'sticky)
+(use-sticky-key ";" sticky-alist:en)
+
Please sign in to comment.
Something went wrong with that request. Please try again.