Emacs personal configuration
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

44 行
2.5KB

  1. (custom-set-variables
  2. ;; custom-set-variables was added by Custom.
  3. ;; If you edit it by hand, you could mess it up, so be careful.
  4. ;; Your init file should contain only one such instance.
  5. ;; If there is more than one, they won't work right.
  6. '(custom-enabled-themes (quote (sanityinc-tomorrow-night)))
  7. '(custom-safe-themes
  8. (quote
  9. ("06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" default)))
  10. '(org-startup-truncated nil)
  11. '(package-selected-packages
  12. (quote
  13. (yasnippet-snippets company-solidity solidity-flycheck flycheck-solidity company json-navigator mu4e org-plus-contrib org-contrib-plus flycheck solidity-mode sql-indent pip-requirements css-eldoc less-css-mode scss-mode sass-mode mmm-mode rainbow-mode tagedit yasnippet yagist ws-butler whole-line-or-region whitespace-cleanup-mode volatile-highlights unfill undo-tree switch-window smex smarty-mode smartparens rainbow-delimiters php-mode pandoc-mode page-break-lines ox-pandoc ox-gfm org-pomodoro multiple-cursors move-dup markdown-mode magit-gh-pulls json-mode js-comint iedit idomenu ido-completing-read+ highlight-symbol highlight-escape-sequences helm-swoop helm-gtags guide-key gitignore-mode github-clone github-browse-file gitconfig-mode git-timemachine git-messenger fullframe fill-column-indicator expand-region duplicate-thing dtrt-indent diminish csv-mode color-theme-sanityinc-tomorrow color-theme-sanityinc-solarized coffee-mode clean-aindent-mode bug-reference-github browse-kill-ring auto-complete anzu ace-jump-mode ac-js2))))
  14. (custom-set-faces
  15. ;; custom-set-faces was added by Custom.
  16. ;; If you edit it by hand, you could mess it up, so be careful.
  17. ;; Your init file should contain only one such instance.
  18. ;; If there is more than one, they won't work right.
  19. )
  20. ;;(eval-after-load "js2-mode"
  21. ;; '(progn
  22. ;; (setq-default js2-basic-offset 4)
  23. ;;))
  24. ;;http://stackoverflow.com/a/803828
  25. (desktop-save-mode 1)
  26. ; http://emacswiki.org/emacs/AutoIndentation#toc2
  27. ;;; Indentation for python
  28. ;; Ignoring electric indentation
  29. (defun electric-indent-ignore-python (char)
  30. "Ignore electric indentation for python-mode"
  31. (if (equal major-mode 'python-mode)
  32. 'no-indent
  33. nil))
  34. (add-hook 'electric-indent-functions 'electric-indent-ignore-python)
  35. ;; Enter key executes newline-and-indent
  36. (defun set-newline-and-indent ()
  37. "Map the return key with `newline-and-indent'"
  38. (local-set-key (kbd "RET") 'newline-and-indent))
  39. (add-hook 'python-mode-hook 'set-newline-and-indent)