Skip to content

Instantly share code, notes, and snippets.

@NewProggie
Created October 4, 2013 20:52
Show Gist options
  • Save NewProggie/6832560 to your computer and use it in GitHub Desktop.
Save NewProggie/6832560 to your computer and use it in GitHub Desktop.
My .emacs config
(package-initialize)
(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.
'(blink-cursor-mode nil)
'(custom-enabled-themes (quote (tango-dark)))
'(global-visual-line-mode t)
'(make-backup-files nil)
'(nyan-wavy-trail t)
'(org-agenda-files (quote ("~/Dropbox/org/")))
'(org-directory "/Users/kai/Dropbox/org")
'(org-mobile-directory "/Users/kai/Dropbox/org")
'(org-mobile-inbox-for-pull "~/Dropbox/org/from-mobile.org")
'(org-startup-indented t)
'(package-archives (quote (("melpa" . "http://melpa.milkbox.net/packages/") ("gnu" . "http://elpa.gnu.org/packages/"))))
'(scroll-bar-mode nil)
'(tool-bar-mode 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.
'(default ((t (:inherit nil :stipple nil :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :foundry "apple" :family "Monaco"))))
'(cursor ((t (:background "dark red")))))
;; key bindings
(when (eq system-type 'darwin) ;; osx specific settings
(setq mac-option-modifier 'none)
(setq mac-command-modifier 'meta)
)
;; The following lines are concerning org-mode
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
;; enable line-numbering
(require 'linum)
(global-linum-mode 1)
;; hide splash screen
(setq inhibit-splash-screen t)
;; F11 = Full Screen
(defun toggle-fullscreen (&optional f)
(interactive)
(let ((current-value (frame-parameter nil 'fullscreen)))
(set-frame-parameter nil 'fullscreen
(if (equal 'fullboth current-value)
(if (boundp 'old-fullscreen) old-fullscreen nil)
(progn (setq old-fullscreen current-value)
'fullboth)))))
(global-set-key [f11] 'toggle-fullscreen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment