Emacs personal configuration
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

39 rindas
1.4KB

  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 (quote ("06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" default)))
  8. '(org-startup-truncated nil))
  9. (custom-set-faces
  10. ;; custom-set-faces was added by Custom.
  11. ;; If you edit it by hand, you could mess it up, so be careful.
  12. ;; Your init file should contain only one such instance.
  13. ;; If there is more than one, they won't work right.
  14. )
  15. ;;(eval-after-load "js2-mode"
  16. ;; '(progn
  17. ;; (setq-default js2-basic-offset 4)
  18. ;;))
  19. ;;http://stackoverflow.com/a/803828
  20. (desktop-save-mode 1)
  21. ; http://emacswiki.org/emacs/AutoIndentation#toc2
  22. ;;; Indentation for python
  23. ;; Ignoring electric indentation
  24. (defun electric-indent-ignore-python (char)
  25. "Ignore electric indentation for python-mode"
  26. (if (equal major-mode 'python-mode)
  27. 'no-indent
  28. nil))
  29. (add-hook 'electric-indent-functions 'electric-indent-ignore-python)
  30. ;; Enter key executes newline-and-indent
  31. (defun set-newline-and-indent ()
  32. "Map the return key with `newline-and-indent'"
  33. (local-set-key (kbd "RET") 'newline-and-indent))
  34. (add-hook 'python-mode-hook 'set-newline-and-indent)