Created
September 10, 2014 16:09
-
-
Save leodemoura/45b36b95d92968137fc2 to your computer and use it in GitHub Desktop.
basic emacs config
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
(tool-bar-mode -1) | |
(menu-bar-mode -1) | |
(scroll-bar-mode -1) | |
(blink-cursor-mode -1) | |
(column-number-mode 1) | |
(setq backup-inhibited t) | |
(global-set-key (kbd "C-x C-b") 'ibuffer) | |
(defalias 'yes-or-no-p 'y-or-n-p) | |
(display-time) | |
;; ======================================= | |
;; 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 [(ctrl f2)] 'toggle-fullscreen) | |
(add-hook 'after-make-frame-functions 'toggle-fullscreen) | |
;; ======================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment