Emacs

Eis o meu .emacs:

;;; Put all auto-save files in the same place
(defvar autosave-dir "/home/andre/.local/.emacs.d/auto-save-files/")
(make-directory autosave-dir t)

(defun make-auto-save-file-name ()
  (concat autosave-dir "#" (buffer-name) "#"))

(setq make-backup-files nil) 

;;; Save position in file
(setq save-place-file "/home/andre/.local/.emacs.d/saveplace")
(setq-default save-place t)
(require 'saveplace)

;;; Other configs
(load "/home/andre/.local/.emacs.d/color-schemes/my.el" nil t t)
(require 'color-theme)
(setq color-theme-is-global t)
(color-theme-i-me-mine)

(setq default-frame-alist '((font-backend . "xft")
                (font . "Envy Code R-8")
                (cursor-color . "white")))

(setq-default fill-column 80)

(mouse-wheel-mode t)
(set-cursor-color "white")

(column-number-mode 1)
(line-number-mode 1)

(setq show-paren-delay 0)
(show-paren-mode 1)
(setq show-paren-style 'expression)
(set-face-background 'show-paren-match-face "#444444")

;;; C Mode
(add-hook 'c-mode-hook '(lambda () (c-set-style "bsd")))

;;; LaTeX Mode
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)

(defun auto-fill-mode-on () (auto-fill-mode 1))
(add-hook 'LaTeX-mode-hook 'auto-fill-mode-on)
(add-hook 'latex-mode-hook 'auto-fill-mode-on)
(add-hook 'TeX-mode-hook   'auto-fill-mode-on)
(add-hook 'tex-mode-hook 'auto-fill-mode-on)

;;; Lua Mode
(setq auto-mode-alist (cons '("\.lua$" . lua-mode) auto-mode-alist))
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)

;;; Haskell Mode
(setq auto-mode-alist
      (append auto-mode-alist
          '(("\\.[hg]s$"  . haskell-mode)
        ("\\.hi$"     . haskell-mode)
        ("\\.l[hg]s$" . literate-haskell-mode))))

(autoload 'haskell-mode "haskell-mode" "Major mode for editing Haskell scripts." t)
(autoload 'literate-haskell-mode "haskell-mode" "Major mode for editing literate Haskell scripts." t)

(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(setq haskell-lieterate-default 'tex)

;;; Slime (Lisp development)
(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime)
(slime-setup)

(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.
 '(column-number-mode t)
 '(inhibit-startup-screen t)
 '(initial-scratch-message nil)
 '(show-paren-mode t))

(put 'upcase-region 'disabled nil)
(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.
 )
page_revision: 1, last_edited: 1246024557|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License