Skip to content

Instantly share code, notes, and snippets.

@RobertoMachorro
Last active September 15, 2020 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertoMachorro/fa0f9b29899c465404277940df037fb5 to your computer and use it in GitHub Desktop.
Save RobertoMachorro/fa0f9b29899c465404277940df037fb5 to your computer and use it in GitHub Desktop.
My Emacs Config
;; Roberto Machorro - Emacs Config File
;; PACKAGE ARCHIVES
(when (> emacs-major-version 23)
(require 'package)
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
)
;; SOURCE CONTROL
(setq vc-follow-symlinks t)
;; INDENTATION
(global-set-key (kbd "TAB") 'self-insert-command)
(setq-default tab-width 4)
(setq-default indent-tabs-mode t)
;; OVERRIDES
(setq scheme-program-name "/usr/local/bin/guile")
(setq inferior-lisp-program "/usr/local/bin/clisp")
(add-hook 'html-mode-hook ; Fix for HTML mode tab override
(lambda()
(setq sgml-basic-offset 4)
(setq indent-tabs-mode t)
)
)
;; WINDOWS / BUFFERS
(global-set-key (kbd "C-c <up>") 'windmove-up)
(global-set-key (kbd "C-c <down>") 'windmove-down)
(global-set-key (kbd "C-c <left>") 'windmove-left)
(global-set-key (kbd "C-c <right>") 'windmove-right)
;; USER INTERFACE
(menu-bar-mode -1)
(column-number-mode t)
(when (> emacs-major-version 25)
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
)
(add-hook 'find-file-hook (lambda () (ruler-mode t)))
(when (display-graphic-p)
(menu-bar-mode t)
(tool-bar-mode -1)
(set-face-attribute 'default nil :height 140)
)
;; BACKUPS
(setq backup-directory-alist `(("." . "~/.emacs.d/file-backups")))
(setq make-backup-files nil)
(setq auto-save-default nil)
; THEMES: wombat deeper-blue
(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])
'(ansi-color-names-vector
["#2d3743" "#ff4242" "#74af68" "#dbdb95" "#34cae2" "#008b8b" "#00ede1" "#e1e1e0"])
'(custom-enabled-themes (quote (wombat)))
'(package-selected-packages (quote (yaml-mode markdown-mode php-mode))))
(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.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment