Fork me on GitHub
#emacs
<
2016-11-21
>
Kira Sotnikov13:11:13

Hey guys, how I could pass to (kbd) a key Fn of my macbook?

Kira Sotnikov13:11:50

C - cmd, s - super, M - meta, which name for fn?:)

chris15:11:59

fn is not a regular key and it’s not picked up by emacs afaik

chris15:11:45

so if you type C-h k and then fn-<other-key> emacs only sees <other-key>

richiardiandrea16:11:29

Hello emacs channel! What is the best setup/mode for Java nowadays?

cmack16:11:24

@lowl4tency if you are using a gui emacs, I think (kbd “<f5>”) should work

Kira Sotnikov16:11:57

chris yeah, seems so, before update to 25 I've got [Fn-right] as move-end-of-line. Now it's as End button

Kira Sotnikov16:11:11

A bit annoyed but I used to C-e yet

Kira Sotnikov16:11:06

cmack it works pretty good for keys f{1-12} but I meant Fn key 🙂

chris16:11:07

@richiardiandrea: java is unfortunately kind of a wasteland. some people use malabarba mode, but something I’ve seen gaining a lot of steam is ensime (which is a scala mode)

chris16:11:32

people are using ensime without scala, but I was unable to get it to work for my (very complicated) java build

Kira Sotnikov16:11:20

Seriously, Java is a monster, very complex to progrmming in Java w/o something like IDea or Eclipse

richiardiandrea16:11:23

I read that the ensime team is working on a Java version (but slowly) on github

richiardiandrea16:11:54

I was thinking of using Idea for refactoring and emacs for pure editing

richiardiandrea16:11:53

(I am a former Java dev, who can't live without paredit/smastparens/emacs anymore)

richiardiandrea16:11:01

But I'll give ensime a try first

mikepjb16:11:58

is anyone using ivy/counsel/projectile for fuzzy searching files in projects? I’ve found it to be a nice setup except that in large codebases it will grind to a halt

jcsims16:11:17

I use projectile and it’s always been super fast for me (silver-searcher + OS X for me)

jan.zy16:11:36

@richiardiandrea I asked my friend who was searching for the best emacs-java setup and he suggests using meghanada or enjime

richiardiandrea16:11:34

@jan.zy thanks! Enjime is what I was talking about ! Will try both anyways

benedek16:11:23

have not tried myself (not working with java nowadays) but jdee is in active development again

benedek16:11:27

might worth a try?!

mikepjb16:11:34

thanks @jcsims I’ll have a closer look at projectile - most likely there’s a setting that needs tweaking

mikepjb16:11:04

this particular project is within a git project but is not the root (there are multiple projects in the codebase)

mikepjb16:11:31

I think it’s probably defaulting to something like git ls-files in the background and it’d probably be better off using find or similar

jcsims16:11:37

@mikepjb I should clarify that I’m just using projectile and ag, not ivy/counsel, if that helps

chris16:11:04

projectile has caching off by default now iirc

chris16:11:14

for my large codebase I needed to turn it back on even with ag

chris16:11:54

just remember that when you go to a different branch you may need to clear the cache

mikepjb17:11:14

fzf.el works well, the interface isn’t nearly as nice as projectile/ivy/counsel however

surreal.analysis19:11:52

If I’m in a buffer, is there a cider command to open that buffer’s test file?

surreal.analysis19:11:19

e.g. I’m in my-ns.core, and I want to open my-ns.core-test

chris19:11:15

this is implemented not in cider but in projectile

chris19:11:40

the issue where they came to that conclusion

chris19:11:04

the projectile function is called projectile-toggle-between-implementation-and-test

chris19:11:43

you can also use cider-test-jump which is a cider function but only works on the function level

chris19:11:00

so you have to be within a function, not just a namespace