Skip to content

Instantly share code, notes, and snippets.

@mori-dev
Created November 19, 2009 03:14
Show Gist options
  • Save mori-dev/238520 to your computer and use it in GitHub Desktop.
Save mori-dev/238520 to your computer and use it in GitHub Desktop.
;; php-mode 時にスペース押下で2スペース移動し、Shift+スペースで1スペース移動する設定
(add-hook 'php-mode-hook
(lambda()
(define-key php-mode-map (kbd "SPC") (lambda () (interactive) (insert " ")))
(define-key php-mode-map (kbd "S-SPC") (lambda () (interactive) (insert " ")))))
;;pointから行頭までを削除
(global-set-key (kbd "C-c C-k") (lambda () (interactive) (kill-line 0)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment