Created
April 21, 2014 10:14
-
-
Save pr00thmatic/11138472 to your computer and use it in GitHub Desktop.
my .emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;smart compilling in a keystroke | |
(global-set-key [f12] 'compile) | |
;;shush toolbar! shush menubar! | |
(menu-bar-mode 0) | |
(tool-bar-mode 0) | |
;; load the file | |
(require 'gnuplot-mode) | |
(add-to-list 'load-path "~/.emacs.d/lisp/gnuplot-mode/") | |
;; specify the gnuplot executable | |
(setq gnuplot-program "/usr/bin/gnuplot") | |
;; automatically open files ending with .gp or .gnuplot in gnuplot mode... | |
(setq auto-mode-alist | |
(append '(("\\.\\(gp\\|gnuplot\\)$" . gnuplot-mode)) auto-mode-alist)) | |
;; org mode | |
(require 'org) | |
(define-key global-map "\C-cl" 'org-store-link) | |
(define-key global-map "\C-ca" 'org-agenda) | |
(setq org-log-done t) | |
;;default browser to chromium | |
(setq browse-url-browser-function 'browse-url-generic | |
browse-url-generic-program "chromium") | |
;;transparent emacs!!! :D | |
;; AKA: fuck you terminal emulators! >:( | |
( set-frame-parameter (selected-frame) 'alpha '(90) ) | |
;;( add-to-list 'default-frame-alist '(aplha 90) ) | |
;;emacs fullscreen at startup | |
(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. | |
'(android-mode-sdk-dir "~/opt/android") | |
'(ansi-color-names-vector ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"]) | |
'(c-default-style (quote ((c++-mode . "") (awk-mode . "awk") (other . "gnu")))) | |
'(c-echo-syntactic-information-p t) | |
'(c-report-syntactic-errors t) | |
'(custom-enabled-themes (quote (manoj-dark))) | |
'(global-linum-mode t) | |
'(inhibit-startup-screen t) | |
'(initial-frame-alist (quote ((fullscreen . maximized)))) | |
'(initial-scratch-message ";; oh, hi VG ·w· | |
")) | |
;;C++ electric mode and auto tab | |
(setq-default c-electric-flag 1) | |
;;-> another C++ stuff | |
;;---> changing the indentation spaces | |
(setq c-basic-offset 6) | |
;;added by emacs o.o | |
(put 'erase-buffer '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. | |
) | |
;;everything below this line need the .el installation. I'm going to update download links and installation tutorials later. | |
;; autocomplete installation... | |
(add-to-list 'load-path "~/.emacs.d/") | |
(require 'auto-complete-config) | |
(add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict") | |
(ac-config-default) | |
;;yasnippet installation... | |
(add-to-list 'load-path | |
"~/.emacs.d/plugins/yasnippet") | |
(require 'yasnippet) | |
(yas-global-mode 1) | |
;;popup on menu for yas-choose-value | |
(require 'popup) | |
(add-hook 'term-mode-hook (lambda() | |
(setq yas-dont-activate t) | |
(linum-mode 0))) | |
;;this is my competitive programming snippet. | |
;;before using, you need to create the file ~/.emacs.d/skeletons/cpp-competitive.cpp, | |
;;and every time you "M-x lets-jam", emacs will insert the cpp-competitive.cpp content into the file | |
;;you are editing | |
(defun lets-jam () | |
"inserts a template for cpp competitive" | |
(interactive) | |
(insert-file-contents "~/.emacs.d/skeletons/cpp-competitive.cpp")) | |
;;; this doesnt work ·n· | |
;;android-mode | |
(add-to-list 'load-path "~/opt/android-mode") | |
(require 'android-mode) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment