Browse Source

Initial commit

drymer 2 years ago
commit
5ec7fbce47
7 changed files with 5385 additions and 0 deletions
  1. 3
    0
      .gitignore
  2. 2579
    0
      README.md
  3. 10
    0
      files/demacs
  4. 2693
    0
      files/init-literate.org
  5. 50
    0
      files/init.el
  6. 12
    0
      files/install-emacs-packages.sh
  7. 38
    0
      tasks/main.yml

+ 3
- 0
.gitignore View File

@@ -0,0 +1,3 @@
1
+*.pyc
2
+*cache*
3
+README.org

+ 2579
- 0
README.md
File diff suppressed because it is too large
View File


+ 10
- 0
files/demacs View File

@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+
3
+USERID=`id -u`
4
+if [[ ! -e /tmp/emacs$USERID/server ]]
5
+then
6
+    emacs --daemon
7
+    emacsclient -c -n -e '(load-file "/tmp/powerline.el")' -e "(org-agenda-list)"
8
+else
9
+    emacsclient -c -n -e "(org-agenda-list)"
10
+fi

+ 2693
- 0
files/init-literate.org
File diff suppressed because it is too large
View File


+ 50
- 0
files/init.el View File

@@ -0,0 +1,50 @@
1
+;; Antes que nada, quitamos del path el org-mode que viene con em
2
+;; (dolist (val load-path)
3
+;;   (if (string-match "lisp\/org" val)
4
+;;       (progn
5
+;; 	(setq org-viejo val)
6
+;; 	(delete val load-path)))
7
+;;   (if (string-match "elpa" val)
8
+;;       (progn
9
+;; 	(setq org-viejo val)
10
+;; 	(delete val load-path))))
11
+
12
+;; Se añade la ruta del org-mode nuevo
13
+
14
+;; Added by Package.el.  This must come before configurations of
15
+;; installed packages.  Don't delete this line.  If you don't want it,
16
+;; just comment it out by adding a semicolon to the start of the line.
17
+;; You may delete these explanatory comments.
18
+(package-initialize)
19
+
20
+(add-to-list 'load-path (concat user-emacs-directory "el-get/org-mode-maint/lisp/"))
21
+
22
+;; Se intenta cargar el org-mode más nuevo. Si falla, vuelve a añadir al path la versión vieja para poder cargar el fichero de configuración
23
+;; (unless (require 'org nil 'noerror)
24
+;;   (add-to-list 'load-path org-viejo))
25
+
26
+;; Se carga la configuración pública y la privada
27
+(message "Evaluating init-literate.org")
28
+(org-babel-load-file (concat user-emacs-directory "init-literate.org"))
29
+(message "Evaluating private-literate.org")
30
+(org-babel-load-file (concat user-emacs-directory "private-literate.org"))
31
+(custom-set-variables
32
+ ;; custom-set-variables was added by Custom.
33
+ ;; If you edit it by hand, you could mess it up, so be careful.
34
+ ;; Your init file should contain only one such instance.
35
+ ;; If there is more than one, they won't work right.
36
+ '(custom-safe-themes
37
+   (quote
38
+    ("71ecffba18621354a1be303687f33b84788e13f40141580fa81e7840752d31bf" default)))
39
+ '(package-selected-packages
40
+   (quote
41
+    (company-jedi gnugo
42
+		  ("org")
43
+		  org-edna "org" "org" "org" "org" org-mode el-get elpy kanban vlf expand-region keyfreq docker-compose-mode docker multiple-cursors avy-window ace-window gitlab markdown-toc neotree pep8 rainbow-delimiters rainbow-mode ansible-doc org-clock-convenience logview apache-mode company-ansible yaml-mode use-package undo-tree toc-org switch-window smex request pyvenv powerline po-mode persistent-scratch paredit palette package-lint org-caldav org-bullets mwe-log-commands markdown-mode magit kivy-mode json-mode ivy-purpose ivy-hydra htmlize helm-dash golden-ratio flycheck flx fill-column-indicator dockerfile-mode dash-functional cyberpunk-theme counsel-projectile company camcorder adaptive-wrap ace-isearch))))
44
+(custom-set-faces
45
+ ;; custom-set-faces was added by Custom.
46
+ ;; If you edit it by hand, you could mess it up, so be careful.
47
+ ;; Your init file should contain only one such instance.
48
+ ;; If there is more than one, they won't work right.
49
+ '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant normal :weight normal :height 107 :width normal)))))
50
+(put 'narrow-to-region 'disabled nil)

+ 12
- 0
files/install-emacs-packages.sh View File

@@ -0,0 +1,12 @@
1
+#!/bin/bash
2
+
3
+EMACSDIR="$HOME/.emacs.d"
4
+
5
+# Instalar todos los paquetes de emacs
6
+emacs -Q --batch --eval "(load-file \""$EMACSDIR/"init.el\")"
7
+
8
+# Por algún motivo al compilar desde el-get mete una ruta incorrecta en org-loaddefs.el
9
+sed -i "s,org-mode-maint/lisp/,,g" $EMACSDIR/el-get/org-mode-maint/lisp/org-loaddefs.el
10
+
11
+# Instalar paquetes restantes
12
+emacs -Q --batch --eval "(load-file \""$EMACSDIR/"init.el\")"

+ 38
- 0
tasks/main.yml View File

@@ -0,0 +1,38 @@
1
+---
2
+# tasks file for emacs-conf
3
+- name: Create emacs.d
4
+  file:
5
+    path: ~/.emacs.d
6
+    state: directory
7
+
8
+- name: Link init.el
9
+  file:
10
+    src: "{{ role_path }}/files/init.el"
11
+    dest: ~/.emacs.d/init.el
12
+    state: link
13
+
14
+- name: Link init-literate.org
15
+  file:
16
+    src: "{{ role_path }}/files/init-literate.org"
17
+    dest: ~/.emacs.d/init-literate.org
18
+    state: link
19
+
20
+- name: See if private-literate.org exists
21
+  stat:
22
+    path: ~/.emacs.d/private-literate.org
23
+  register: private_literate
24
+
25
+- name: Create empty private-literate.org
26
+  file:
27
+    path: ~/.emacs.d/private-literate.org
28
+    state: touch
29
+
30
+- name: Poblate private-literate.org
31
+  lineinfile:
32
+    path: ~/.emacs.d/private-literate.org
33
+    line: "* Vacio\n#+BEGIN_SRC emacs-lisp\n#+END_SRC"
34
+    state: present
35
+  when: private_literate.stat.exists == false
36
+
37
+- name: Execute package install script
38
+  script:  "{{ role_path }}/files/install-emacs-packages.sh"

Loading…
Cancel
Save