Case963

Untitled

Sep 21st, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. (require 'package)
  2. (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
  3. (not (gnutls-available-p))))
  4. (proto (if no-ssl "http" "https")))
  5. ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
  6. (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
  7. ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
  8. (when (< emacs-major-version 24)
  9. ;; For important compatibility libraries like cl-lib
  10. (add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/")))))
  11. (package-initialize)
  12.  
  13. (set-frame-parameter (selected-frame) 'alpha '(70 50))
  14. (add-to-list 'default-frame-alist '(alpha 70 50))
  15.  
  16. (custom-set-variables
  17. ;; custom-set-variables was added by Custom.
  18. ;; If you edit it by hand, you could mess it up, so be careful.
  19. ;; Your init file should contain only one such instance.
  20. ;; If there is more than one, they won't work right.
  21. '(custom-enabled-themes (quote (monochrome)))
  22. '(custom-safe-themes
  23. (quote
  24. ("39dd7106e6387e0c45dfce8ed44351078f6acd29a345d8b22e7b8e54ac25bac4" default)))
  25. '(package-selected-packages
  26. (quote
  27. (dashboard buffer-flip termbright-theme monochrome-theme))))
  28. (custom-set-faces
  29. ;; custom-set-faces was added by Custom.
  30. ;; If you edit it by hand, you could mess it up, so be careful.
  31. ;; Your init file should contain only one such instance.
  32. ;; If there is more than one, they won't work right.
  33. '(default ((t (:family "DejaVu Sans Mono" :foundry "PfEd" :slant normal :weight normal :height 158 :width normal)))))
  34.  
  35. ;; key to begin cycling buffers. Global key.
  36. (global-set-key (kbd "M-<tab>") 'buffer-flip)
  37.  
  38. ;; transient keymap used once cycling starts
  39. (setq buffer-flip-map
  40. (let ((map (make-sparse-keymap)))
  41. (define-key map (kbd "M-<tab>") 'buffer-flip-forward)
  42. (define-key map (kbd "M-S-<tab>") 'buffer-flip-backward)
  43. (define-key map (kbd "M-ESC") 'buffer-flip-abort)
  44. map))
  45.  
  46. ;; buffers matching these patterns will be skipped
  47. (setq buffer-flip-skip-patterns
  48. '("^\\*helm\\b"
  49. "^\\*swiper\\*$"))
  50.  
  51.  
  52.  
  53. (global-set-key (kbd "M-q") 'kill-buffer)
  54.  
  55.  
  56. (require 'dashboard)
  57. (dashboard-setup-startup-hook)
  58. ;; Or if you use use-package
  59. (use-package dashboard
  60. :ensure t
  61. :config
  62. (dashboard-setup-startup-hook))
Advertisement
Add Comment
Please, Sign In to add comment