Skip to content

Instantly share code, notes, and snippets.

@ulyssesdotcodes
Last active February 18, 2017 22:01
Show Gist options
  • Save ulyssesdotcodes/40f9db13d3df11336322 to your computer and use it in GitHub Desktop.
Save ulyssesdotcodes/40f9db13d3df11336322 to your computer and use it in GitHub Desktop.
My spacemacs
dotspacemacs-default-font '("Source Code Pro"
:size 18
:weight normal
:width normal
:powerline-scale 1.1)
(server-start)
(setq haskell-default-program "stack ghci")
(add-to-list 'load-path "c:/Users/ulyss/Development/oscillare")
(require 'oscillare)
(define-derived-mode magit-staging-mode magit-status-mode "Magit staging"
"Mode for showing staged and unstaged changes."
:group 'magit-status)
(defun magit-staging-refresh-buffer ()
(magit-insert-section (status)
(magit-insert-untracked-files)
(magit-insert-unstaged-changes)
(magit-insert-staged-changes)))
(defun magit-staging ()
(interactive)
(magit-mode-setup #'magit-staging-mode))
(setq-default elm-indent-offset 2)
(global-linum-mode nil)
(linum-relative-toggle)
(electric-indent-mode 0)
;; Map j/k to move visual lines.
(define-key evil-motion-state-map "j" 'evil-next-visual-line)
(define-key evil-motion-state-map "k" 'evil-previous-visual-line)
(define-key evil-visual-state-map "j" 'evil-next-visual-line)
(define-key evil-visual-state-map "k" 'evil-previous-visual-line)
(sp-pair "\{" "\}" :actions '(wrap insert))
(sp-local-pair 'web-mode "\{" nil :actions nil)
(setq tab-width 2)
(setq-default js-indent-level 2)
(setq-default js2-basic-offset 2)
(setq web-mode-code-indent-offset 2)
(setq javascript-indent-level 2)
(defun toggle-transparency ()
(interactive)
(let ((alpha (frame-parameter nil 'alpha)))
(set-frame-parameter
nil 'alpha
(if (eql (cond ((numberp alpha) alpha)
((numberp (cdr alpha)) (cdr alpha))
;; Also handle undocumented (<active> <inactive>) form.
((numberp (cadr alpha)) (cadr alpha)))
100)
'(65 . 50) '(100 . 100)))))
(global-set-key (kbd "C-c t") 'toggle-transparency)
(evil-leader/set-key "pf" 'counsel-git)
(setq org-agenda-files (quote("~/Documents/OrgMode/inbox.org")))
(setq org-mobile-files (quote("~/Documents/OrgMode/mobileorg.org" "~/Documents/OrgMode/inbox.org")))
(setq org-mobile-agendas (quote("~/Documents/OrgMode/inbox.org")))
(setq org-directory "~/Documents/OrgMode")
(setq org-mobile-directory "/[email protected]#858:MobileOrg")
(setq org-mobile-inbox-for-pull (concat org-directory "/index.org"))
(setq org-mobile-checksum-binary "sha1sum")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment