shitty-configs

mail@pastecode.io avatar
unknown
lisp
3 years ago
3.4 kB
2
Indexable
Never
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired.  See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)

(condition-case nil
    (require 'use-package)
  (file-error
   (require 'package)
   (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
   (package-initialize)
   (package-refresh-contents)
   (package-install 'use-package)
   (setq use-package-always-ensure t)
   (require 'use-package)))
(require 'lsp-java)
(add-hook 'java-mode-hook #'lsp)
(use-package projectile)
(use-package flycheck)
(use-package yasnippet :config (yas-global-mode))
(use-package lsp-mode :hook ((lsp-mode . lsp-enable-which-key-integration))
  :config (setq lsp-completion-enable-additional-text-edit nil))
(use-package hydra)
(use-package company)
(use-package lsp-ui)
(use-package which-key :config (which-key-mode))
(use-package lsp-java :config (add-hook 'java-mode-hook 'lsp))
(use-package dap-mode :after lsp-mode :config (dap-auto-configure-mode))
(use-package dap-java :ensure nil)
(use-package helm-lsp)
(use-package helm
  :config (helm-mode))
(use-package lsp-treemacs)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(ansi-color-faces-vector
   [default default default italic underline success warning error])
 '(ansi-color-names-vector
   ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
 '(custom-enabled-themes '(deeper-blue))
 '(gradle-mode t)
 '(inhibit-startup-screen t)
 '(package-selected-packages
   '(company-ctags phpunit php-mode treemacs-all-the-icons all-the-icons esup kotlin-mode groovy-mode gradle-mode use-package helm-lsp helm lsp-java which-key lsp-ui company hydra lsp-mode yasnippet flycheck projectile))
 '(xterm-mouse-mode t))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(setenv "JAVA_HOME"
        "/home/mina/.sdkman/candidates/java/current")
(setq lsp-java-java-path (substitute-in-file-name "$JAVA_HOME/bin/java"))
   (add-to-list 'default-frame-alist
                       '(font . "Jet Brains Mono-14"))
(menu-bar-mode -1)
(tool-bar-mode -1) 
(setq-default tab-width 4)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(setq make-backup-files nil)
(global-set-key "\C-c\C-v" "\C-a\C- \C-n\M-w\C-y")
(setenv "PATH" (concat (getenv "PATH") ":/home/mina/.sdkman/candidates/gradle/current/bin/"))
(setq exec-path (append exec-path '("/home/mina/.sdkman/candidates/gradle/current/bin/")))
;;; -*- lexical-binding: t -*-
(use-package php-mode
 :ensure t
 :mode
("\\.php\\’" . php-mode))
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(use-package phpunit
 :ensure t)
(provide 'lang-php)
(setq x-select-enable-clipboard t)
(setq interprogram-past-function 'x-cut-buffer-or-selection-value)