Advertisement
Guest User

Untitled

a guest
Apr 20th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 3.51 KB | None | 0 0
  1. ;; No backup files
  2. (setq make-backup-files nil) ; stop creating backup~ files
  3. (setq auto-save-default nil) ; stop creating #autosave# files
  4.  
  5. ;; Maximized
  6. (add-to-list 'default-frame-alist '(fullscreen . maximized))
  7.  
  8. ;; Custom emacs to macs
  9. (load "/Users/macesarr/Emacs/redo.el")
  10. (require 'redo)
  11.  
  12. ;; Abriendo consola por atajo
  13. (global-set-key (kbd "C-+") 'eshell)
  14.  
  15. ;; Change window shortcut
  16. (global-set-key (kbd "C-.") 'other-window)
  17.  
  18. ;; Personalización de EMACS
  19. (icomplete-mode t) ; minibufer interactivo para variables, funciones
  20. (delete-selection-mode 1) ; Eliminar texto seleccionado
  21. (global-visual-line-mode 1) ; Respeta fin de linea
  22.  
  23. ;;Disable toolbar
  24. (tool-bar-mode -1)
  25.  
  26. ;; LINUM MODE
  27. (global-linum-mode t)
  28.  
  29. ;; RELOJ ==========================================================
  30. ;; Si aparece el reloj, se ha leído todo el .emacs
  31. (display-time)
  32.  
  33. ;; Formato del reloj
  34. (setq display-time-24hr-format t     ;; 24 horas
  35.       display-time-load-average nil) ;; No mostrar load-average
  36.  
  37. ;; BATERY
  38. (display-battery-mode 1)
  39.  
  40. ;; ELECTRIC PAIR PAIRS
  41.  
  42. ;; make electric-pair-mode work on more brackets
  43. (electric-pair-mode 1)
  44. (setq electric-pair-pairs '(
  45.                             (?\" . ?\")
  46.                 (?\' . ?\')
  47.                            (?\{ . ?\})
  48.                            ) )
  49.  
  50. ;; TABBAR MODE
  51. (load "/Users/macesarr/Emacs/tabbar.el")
  52. (require 'tabbar)
  53. (tabbar-mode t)
  54. (global-set-key (kbd "s-1") 'tabbar-backward)
  55. (global-set-key (kbd "s-2") 'tabbar-forward)
  56.  
  57.  
  58. ;; CUSTOM KEYS TO EMACS USEFUL
  59. ;; make cursor movement keys under right hand's home-row.
  60. (global-set-key (kbd "M-i") 'previous-line)
  61. (global-set-key (kbd "M-j") 'backward-char)
  62. (global-set-key (kbd "M-k") 'next-line)
  63. (global-set-key (kbd "M-l") 'forward-char)
  64.  
  65. (global-set-key (kbd "M-u") 'backward-word)
  66. (global-set-key (kbd "M-o") 'forward-word)
  67.  
  68. ;; PHP-mode
  69. (load "/Users/macesarr/Emacs/php-mode.el")
  70. (autoload 'php-mode "php-mode" "Major mode for editing php code." t)
  71. (add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
  72. (add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
  73.  
  74. ;; WEB MODE
  75. (load "/Users/macesarr/Emacs/web-mode.el")
  76. (require 'web-mode)
  77. (add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))
  78. (add-to-list 'auto-mode-alist '("\\.ctp\\'" . web-mode))
  79. (add-to-list 'auto-mode-alist '("\\.css\\'" . web-mode))
  80. (add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
  81. (add-to-list 'auto-mode-alist '("\\.tpl\\'" . web-mode))
  82. (add-to-list 'auto-mode-alist '("\\.[gj]sp\\'" . web-mode))
  83. (add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
  84. (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
  85. (add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
  86. (add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
  87.  
  88. ;; TYPESCRIPT MODE
  89. (load "/Users/macesarr/Emacs/typescript-mode.el")
  90. (require 'web-mode)
  91. (add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))
  92.  
  93.  
  94. (custom-set-variables
  95. ;; custom-set-variables was added by Custom.
  96. ;; If you edit it by hand, you could mess it up, so be careful.
  97. ;; Your init file should contain only one such instance.
  98. ;; If there is more than one, they won't work right.
  99. '(ansi-color-faces-vector
  100.   [default default default italic underline success warning error])
  101. '(custom-enabled-themes (quote (wombat))))
  102. (custom-set-faces
  103. ;; custom-set-faces was added by Custom.
  104. ;; If you edit it by hand, you could mess it up, so be careful.
  105. ;; Your init file should contain only one such instance.
  106. ;; If there is more than one, they won't work right.
  107. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement