Emacs Configs
+Emacs configure
1 Packages
@@ -244,8 +244,12 @@ $(function() {1.2 Package Archives
+Adding the melpa package repository to Emacs.
@@ -263,11 +267,22 @@ Adding the melpa package repository to Emacs.2 Themes
-Using the Forest Blue-Theme +Using the Material-Theme.
(load-theme 'forest-blue t) +(load-theme 'material t) ++
+Changes the Emacs background to the terminals defaults. (Generally) +
+(add-hook 'window-setup-hook + '(lambda () + (set-face-background 'default "unspecified-bg")))
3.1.1 Copy
+Copy the marked area to the clipboard. +
(defun copy-to-xclipboard(arg) @@ -306,6 +324,9 @@ Using the Forest Blue-3.1.2 Cut
++Cut the marked area to the clipboard. +
(defun cut-to-xclipboard(arg) @@ -331,6 +352,9 @@ Using the Forest Blue--3.1.3 Paste
+-+Paste from the clipboard. +
-(defun paste-from-xclipboard() @@ -368,45 +392,30 @@ Go back to indentation, if you are at the indentation, go to beginning of the li (beginning-of-line)))-3.3 Personal mode to overwrite Emacs' default keybindings
-+ ++Sets the background of Emacs in terminal-mode to the terminals. Doesn't change it in window +mode tho. +
-(defvar my-keys-minor-mode-map - (let ((map (make-sparse-keymap))) - (define-key map (kbd "C-a") 'back-to-indentation-or-beginning) - (define-key map (kbd "C-c M-w") 'copy-to-xclipboard) - (define-key map (kbd "C-c C-w") 'cut-to-xclipboard) - (define-key map (kbd "C-c M-y") 'paste-from-xclipboard) - map) - "my-keys-minor-mode keymap.") - -(define-minor-mode my-keys-minor-mode - "A minor mode so that my key settings override annoying major modes." - :init-value t - :lighter " my-keys") +(defun transparent-terminal () + (unless (display-graphic-p (selected-frame)) + (set-face-background 'default "unspecified-bg" (selected-frame))))-4 Mode customization
+4 Mode customisation
-4.1 Global Modes
+4.1 Window Modes
@@ -470,9 +479,13 @@ Activate Syntax Highlighting in Org-mode.-(global-hl-line-mode 1) -(my-keys-minor-mode 1) -(ivy-mode 1) -(show-paren-mode +1) -(menu-bar-mode -1) -(yas-global-mode 1) +(menu-bar-mode -1)-Add rainbow-delimiteres in org-mode -(add-hook 'org-mode-hook 'rainbow-delimiters-mode) +Add rainbow-delimiters in org-mode
++ +(add-hook 'org-mode-hook 'rainbow-delimiters-mode) ++@@ -480,7 +493,8 @@ Add rainbow-delimiteres in org-mode@@ -491,16 +505,21 @@ Add rainbow-delimiteres in org-mode- +(ivy-mode 1) +(require 'paren) (setq show-paren-style 'parenthesis) +(show-paren-mode +1)
4.7 Hightlight Line
+4.7 Highlight line
+Globaly highlight the current line in a slightly darker shade of grey. +
(set-face-background 'hl-line "#333333") +(global-hl-line-mode 1) +(set-face-background 'hl-line "#333333") (set-face-foreground 'highlight nil)
(require 'yasnippet) (setq yas-snippet-dirs '("~/.emacs.d/snippets/")) +(yas-global-mode 1) ++
4.9 Personal mode
+(defvar my-keys-minor-mode-map + (let ((map (make-sparse-keymap))) + (define-key map (kbd "C-a") 'back-to-indentation-or-beginning) + (define-key map (kbd "C-c M-w") 'copy-to-xclipboard) + (define-key map (kbd "C-c C-w") 'cut-to-xclipboard) + (define-key map (kbd "C-c M-y") 'paste-from-xclipboard) + map) + "my-keys-minor-mode keymap.") + +(define-minor-mode my-keys-minor-mode + "A minor mode so that my key settings override annoying major modes." + :init-value t + :lighter " my-keys") + +(my-keys-minor-mode 1)