~/.emacs.d/init.el
--------------------------------
;; load emacs 24's package system. Add MELPA repository.
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(when (>= emacs-major-version 24)
(require 'package)
(setq package-check-signature nil)
(add-to-list
'package-archives
;;'("melpa" . "http://stable.melpa.org/packages/") ; many packages won't show if using stable
'("melpa" . "http://melpa.milkbox.net/packages/")
t))
(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.
'(package-selected-packages (quote (sed-mode paredit monroe nrepl-sync clojure-mode))))
(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.
)
(require 'monroe)
(add-hook 'clojure-mode-hook 'clojure-enable-monroe)
(add-hook 'clojure-mode-hook 'paredit-mode)
----------------------------------------------------------------------------------------
ALT + x package-install
Install package: monroe
ALT + x package-install
Install package: clojure-mode
ALT + x package-install
Install package: paredit
---------------------------------------------------------------------------------------
Komut satırı
$ cd ~/Projects
$ lein new app kerimbasol
Generating a project called kerimbasol based on the 'app' template.
$ cd kerimbasol
$ lein repl
nREPL server started on port 37829 on host 127.0.0.1 - nrepl://127.0.0.1:37829
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.10.0
OpenJDK 64-Bit Server VM 12.0.2+10
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
--------------------------------------------------------------------------------------------------------
EMACS tarafı
CTRL + x CTRL + f
Find file: ~/Projeler/kerimbasol/src/kerimbasol/core.clj
ALT + x monroe
Host (default 'localhost:37829'): Enter
Connected.
CTRL + x b
Switch to buffer (default core.clj): Enter
--------------------------------------------------------------------------------------------------------
Kod üzerinde ki her değişiklikte
CTRL + C CTRL + K
Install package: monroe
ALT + x package-install
Install package: clojure-mode
ALT + x package-install
Install package: paredit
---------------------------------------------------------------------------------------
Komut satırı
$ cd ~/Projects
$ lein new app kerimbasol
Generating a project called kerimbasol based on the 'app' template.
$ cd kerimbasol
$ lein repl
nREPL server started on port 37829 on host 127.0.0.1 - nrepl://127.0.0.1:37829
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.10.0
OpenJDK 64-Bit Server VM 12.0.2+10
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
--------------------------------------------------------------------------------------------------------
EMACS tarafı
CTRL + x CTRL + f
Find file: ~/Projeler/kerimbasol/src/kerimbasol/core.clj
ALT + x monroe
Host (default 'localhost:37829'): Enter
Connected.
CTRL + x b
Switch to buffer (default core.clj): Enter
--------------------------------------------------------------------------------------------------------
Kod üzerinde ki her değişiklikte
CTRL + C CTRL + K
Hiç yorum yok:
Yorum Gönder