You are on page 1of 3

(package-initialize)

;; ORG- MODE
(require 'ido)
(ido-mode)
(ido-everywhere)

;; which-key
(require 'which-key)
(which-key-mode)
(setq which-key-popup-type 'minibuffer)

;;Fonts
(custom-set-faces)
(defun fontify-frame (frame) (set-frame-parameter frame 'font "Ubuntu Mono-11"))
(fontify-frame nil)
(push 'fontify-frame after-make-frame-functions)

;; Borrar letras negritas


(dolist (face (face-list))
(custom-set-faces
`(,face ((t (:weight normal))))))

;;(set-default-font "11")
;;fin fonts

(setq frame-title-format "emacs")


(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(set-default 'cursor-type'bar)
(define-key key-translation-map [dead-circumflex] "^")
(define-key key-translation-map [dead-grave] "´")

;; Theme
(load-theme 'spacemacs-dark t)

;;keep cursor at same position when scrolling


(setq scroll-preserve-screen-position 1)
;;scroll window up/down by one line
(global-set-key (kbd "M-n") (kbd "C-u 1 C-v"))
(global-set-key (kbd "M-p") (kbd "C-u 1 M-v"))
;; Configuración del entorno emacs

;;MELPA MANUAL
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)

(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(url (concat (if no-ssl "http" "https") "://melpa.org/packages/")))
(add-to-list 'package-archives (cons "melpa" url) t))
(when (< emacs-major-version 24)

(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))


(package-initialize)
;;FIN MELPA
;;Telephone Line
(require 'telephone-line)
(telephone-line-mode t)

;;(setq telephone-line-subseparator-faces '())


;;(setq telephone-line-height 24
;; telephone-line-evil-use-short-tag t)

(setq telephone-line-primary-left-separator 'telephone-line-cubed-left


telephone-line-secondary-left-separator 'telephone-line-cubed-hollow-left
telephone-line-primary-right-separator 'telephone-line-cubed-right
telephone-line-secondary-right-separator 'telephone-line-cubed-hollow-right)
(setq telephone-line-height 24
telephone-line-evil-use-short-tag t)

(telephone-line-mode 1)
;; Fin telephone Line

;;multiple-cursors
(require 'multiple-cursors)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)

;; Move line down/up


(defun move-line (n)
"Move the current line up or down by N lines."
(interactive "p")
(setq col (current-column))
(beginning-of-line) (setq start (point))
(end-of-line) (forward-char) (setq end (point))
(let ((line-text (delete-and-extract-region start end)))
(forward-line n)
(insert line-text)
;; restore point to original column in moved line
(forward-line -1)
(forward-char col)))

(defun move-line-up (n)


"Move the current line up by N lines."
(interactive "p")
(move-line (if (null n) -1 (- n))))

(defun move-line-down (n)


"Move the current line down by N lines."
(interactive "p")
(move-line (if (null n) 1 n)))

(global-set-key (kbd "M-<up>") 'move-line-up)


(global-set-key (kbd "M-<down>") 'move-line-down)

;Julia

(add-to-list 'load-path "/home/ronald/.emacs.d/elpa/julia-mode-0.6.2/julia-


mode.el")
(require 'julia-mode)
(add-to-list 'load-path "/home/ronald/.emacs.d/elpa/julia-shell-
20161125.1110/julia-shell.el")
(require 'julia-shell)

(defun my-julia-mode-hooks ()
(require 'julia-shell-mode))
(add-hook 'julia-mode-hook 'my-julia-mode-hooks)
(define-key julia-mode-map (kbd "C-c C-c") 'julia-shell-run-region-or-line)
(define-key julia-mode-map (kbd "C-c C-s") 'julia-shell-save-and-go)

(add-to-list 'load-path "/home/ronald/.emacs.d/elpa/julia-repl-master/julia-


repl.el")
(require 'julia-repl)
(add-hook 'julia-mode-hook 'julia-repl-mode)

(defun julia-fill-string ()
"Fill a docstring, preserving newlines before and after triple quotation marks."
(interactive)
(if (and transient-mark-mode mark-active)
(fill-region (region-beginning) (region-end) nil t)
(cl-flet ((fill-if-string ()
(when (or (looking-at (rx "\"\"\""
(group
(*? (or (not (any "\\"))
(seq "\\"
anything))))
"\"\"\""))
(looking-at (rx "\""
(group
(*? (or (not (any "\\"))
(seq "\\"
anything))))
"\"")))
(let ((start (match-beginning 1))
(end (match-end 1)))
;; (ess-blink-region start end)
(fill-region start end nil nil nil)))))
(save-excursion
(let ((s (syntax-ppss)))
(when (fourth s) (goto-char (ninth s))))
(fill-if-string)))))

;;Julia fin

You might also like