Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; No backup files
- (setq make-backup-files nil) ; stop creating backup~ files
- (setq auto-save-default nil) ; stop creating #autosave# files
- ;; Maximized
- (add-to-list 'default-frame-alist '(fullscreen . maximized))
- ;; Custom emacs to macs
- (load "/Users/macesarr/Emacs/redo.el")
- (require 'redo)
- ;; Abriendo consola por atajo
- (global-set-key (kbd "C-+") 'eshell)
- ;; Change window shortcut
- (global-set-key (kbd "C-.") 'other-window)
- ;; Personalización de EMACS
- (icomplete-mode t) ; minibufer interactivo para variables, funciones
- (delete-selection-mode 1) ; Eliminar texto seleccionado
- (global-visual-line-mode 1) ; Respeta fin de linea
- ;;Disable toolbar
- (tool-bar-mode -1)
- ;; LINUM MODE
- (global-linum-mode t)
- ;; RELOJ ==========================================================
- ;; Si aparece el reloj, se ha leído todo el .emacs
- (display-time)
- ;; Formato del reloj
- (setq display-time-24hr-format t ;; 24 horas
- display-time-load-average nil) ;; No mostrar load-average
- ;; BATERY
- (display-battery-mode 1)
- ;; ELECTRIC PAIR PAIRS
- ;; make electric-pair-mode work on more brackets
- (electric-pair-mode 1)
- (setq electric-pair-pairs '(
- (?\" . ?\")
- (?\' . ?\')
- (?\{ . ?\})
- ) )
- ;; TABBAR MODE
- (load "/Users/macesarr/Emacs/tabbar.el")
- (require 'tabbar)
- (tabbar-mode t)
- (global-set-key (kbd "s-1") 'tabbar-backward)
- (global-set-key (kbd "s-2") 'tabbar-forward)
- ;; CUSTOM KEYS TO EMACS USEFUL
- ;; make cursor movement keys under right hand's home-row.
- (global-set-key (kbd "M-i") 'previous-line)
- (global-set-key (kbd "M-j") 'backward-char)
- (global-set-key (kbd "M-k") 'next-line)
- (global-set-key (kbd "M-l") 'forward-char)
- (global-set-key (kbd "M-u") 'backward-word)
- (global-set-key (kbd "M-o") 'forward-word)
- ;; PHP-mode
- (load "/Users/macesarr/Emacs/php-mode.el")
- (autoload 'php-mode "php-mode" "Major mode for editing php code." t)
- (add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
- (add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
- ;; WEB MODE
- (load "/Users/macesarr/Emacs/web-mode.el")
- (require 'web-mode)
- (add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.ctp\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.css\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.tpl\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.[gj]sp\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
- (add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
- ;; TYPESCRIPT MODE
- (load "/Users/macesarr/Emacs/typescript-mode.el")
- (require 'web-mode)
- (add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))
- (custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(ansi-color-faces-vector
- [default default default italic underline success warning error])
- '(custom-enabled-themes (quote (wombat))))
- (custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement