;; .emacs.d/init.el (menu-bar-mode -1) ;; Oculta la barra del menú (scroll-bar-mode -1) ;; Oculta la barra de desplazamiento (tool-bar-mode -1) ;; Oculta la barra de herramientas (delete-selection-mode 1) ;; Borra la región seleccionada (column-number-mode) ;; Número de la columna en la línea de modo ;; =================================== ;; MELPA Package Support ;; =================================== ;; Enables basic packaging support (require 'package) ;; Adds the Melpa archive to the list of available repositories (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) ;; Initializes the package infrastructure (package-initialize) ;; If there are no archived package contents, refresh them (when (not package-archive-contents) (package-refresh-contents)) ;; Installs packages ;; ;; myPackages contains a list of package names (defvar myPackages '(better-defaults ;; Set up some better Emacs solarized-theme ;; Theme ) ) ;; Scans the list in myPackages ;; If the package listed is not already installed, install it (mapc #'(lambda (package) (unless (package-installed-p package) (package-install package))) myPackages) ;; =================================== ;; Basic Customization ;; =================================== (setq inhibit-startup-message t) ;; Hide the startup message (load-theme 'solarized-dark t) ;; Load solarized theme (global-linum-mode t) ;; Enable line numbers globally ;; User-Defined init.el ends here (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. '(package-selected-packages '(material-theme better-defaults))) (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. )