Skip to content

Instantly share code, notes, and snippets.

@vvikramjhu
Forked from anonymous/my
Last active August 29, 2015 14:02
Show Gist options
  • Save vvikramjhu/96814f8036d8f7e4243b to your computer and use it in GitHub Desktop.
Save vvikramjhu/96814f8036d8f7e4243b to your computer and use it in GitHub Desktop.
Face: default (sample) (customize this face)
Documentation:
Basic default face.
Defined in `faces.el'.
Family: Inconsolata
Foundry: unknown
Width: normal
Height: 120
Weight: normal
Slant: normal
Foreground: #eeeeec
DistantForeground: unspecified
Background: #2e3436
Underline: nil
Overline: nil
Strike-through: nil
Box: nil
Inverse: nil
Stipple: nil
Font: #<font-object -unknown-Inconsolata-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1>
Fontset: -unknown-Inconsolata-normal-normal-normal-*-16-*-*-*-m-0-fontset-auto2
Inherit: nil
[back]
;; These are lines ( custom set-variables and set-faces) are added to the file when you use the customise system.
;; They're generated when you use customize-*. By default, the customisation options are stored in the .emacs file.
;; You don't usually edit these by hand. You have to use the customize-* commands to edit them.
(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-names-vector
["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
'(column-number-mode t)
'(custom-enabled-themes (quote (tango-dark)))
'(fill-column 79)
'(font-use-system-font t)
'(initial-frame-alist (quote ((fullscreen . maximized))))
'(scalable-fonts-allowed t)
'(show-paren-mode t)
'(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
'(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 :background "#2e3436" :foreground "#eeeeec" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :foundry "unknown" :family "Inconsolata"))))
'(cperl-array-face ((((class color) (background light)) (:background "lightyellow2" :foreground "Green" :weight normal))) t)
'(cperl-hash-face ((((class color) (background light)) (:background "lightyellow2" :foreground "Red" :slant italic :weight semi-bold))) t))
(if (fboundp 'global-font-lock-mode)
(global-font-lock-mode 1)
(setq font-lock-auto-fontify t))
(setq cperl-invalid-face nil)
(setq cperl-electric-keywords t) ;; expands for keywords such as
;; foreach, while, etc...
(setq cperl-hairy t) ;; Turns on most of the CPerlMode options
;;(set-default-font "-*-clean-medium-r-normal--17-*-*-*-*-*-*-*")
;; Set font ( done by me manually ).
;; (add-to-list 'default-frame-alist '(font . "Inconsolata-10"))
(add-to-list 'default-frame-alist '(font . "Inconsolata-10" ))
(set-face-attribute 'default t :font "Inconsolata-10")
;; enable sematic-mode for all c/c++/java files. Read emacs tips inside Dropbox/tutorials folder
(semantic-mode 1)
;; Make spaces instead of tabs
(setq-default indent-tabs-mode nil)
(setq-default tab-width 8)
(setq load-path (cons "~/emacs" load-path))
(autoload 'scheme-mode "iuscheme" "Major mode for Scheme." t)
(autoload 'run-scheme "iuscheme" "Switch to interactive Scheme buffer." t)
(setq auto-mode-alist (cons '("\\.ss" . scheme-mode) auto-mode-alist))
(put 'form-id 'scheme-indent-function 1)
(autoload 'balanced-toggle "balanced" "Toggle balanced ``mode''" t)
(autoload 'balanced-on "balanced" "Turn on balanced ``mode''" t)
(add-hook 'scheme-mode-hook 'balanced-on)
;(setq initial-frame-alist
; '(
; (top . 0) (left . 0)
; (width . 200) (height . 64)
; (background-color . "Gray92")
; (foreground-color . "Black")
; (background-color . "white smoke")
; (foreground-color . "tan4")
; (cursor-color . "red3")
; ))
;; The Line below just allows sml mode to load
(load "/media/Yojimbo/installationFiles/sml-mode-5.0/sml-mode-startup")
;; The line below allows for making tab width as 4
(setq default-tab-width 4 )
;; The line below enables line numbers always
(global-linum-mode t)
;; tool bar mode to false
(tool-bar-mode -1)
;; I am adding ruby modes from this site --http://peter.peca.dk/art_Emacs_Ruby_Mode.html
(add-hook 'ruby-mode-hook (lambda () (local-set-key "\r" 'newline-and-indent)))
(add-hook 'ruby-mode-hook (lambda () (ruby-electric-mode t)))
;; I am adding the global electric hook mode for all brackets
(add-hook 'prog-mode-hook 'electric-pair-mode)
;; Adding the thing told to me or irc for making C-j = C-j + return to get autoindent on newline.
(add-hook 'prog-mode-hook (lambda () (local-set-key (kbd "RET") 'newline-and-indent)))
;; To load last desktop session hf
(set-face-attribute 'default (selected-frame) :height 120)
;; Using the site http://marmalade-repo.org/ and adding the repo. This helps in adding extra packages to emacs
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment