Fork me on GitHub
#spacemacs
<
2017-02-20
>
ag05:02:42

@jeff.terrell in order the stuff to show up in your agenda the files need to be added to org-agenda-files.

ag05:02:00

read up the documentation on the variable: SPC F1 org-agenda-files then C-o till it jumps to variables section (because there’s also a function with the same name).

jeff.terrell13:02:13

@ag - Ah, very nice. (Well, I wasn't sure when to hit C-o, but I eventually switched to my org file and hit M-x org-agenda-file-to-front and that worked.) Thank you!

twashing19:02:56

Does anyone know howto set the indent-offset, in the Java layer ?

ag19:02:03

@jeff.terrell > I wasn't sure when to hit C-o if you’re using Helm, SPC F1 some-symbol opens helm-apropos. Like many other helm-buffers it contains multiple sections: for commands, functions, variables, etc. To quickly jump between the sections you can press C-o.

ag19:02:07

You, can set directory path or regex in org-agenda-files. Then all the files in that path will show up in agenda view

jeff.terrell20:02:28

@ag - Ah, very cool! I actually did check out the Helm actions menu (with C-z), but didn't see C-o listed, so gave up on that. But now I see what you mean, once I try it. Neat tip, thanks!

practicalli_john20:02:47

@twashing as an example, this is how I set up indent for web mode http://emacs.stackexchange.com/questions/25044/how-do-i-set-up-indentation-to-2-spaces-in-web-mode It could be something like (setq java-mode-code-indent-offset 2), but only if the Java mode is written in the same way as the web mode.

practicalli_john20:02:48

Seems you may have to dig into the Java support in Emacs further than the Java layer

twashing20:02:54

Hey @jr0cket , yeah that’s the first thing I checked. There’s indent-offset vars for web , haskell, and a few other modes...

twashing20:02:57

but not for Java

twashing20:02:19

Hmm, yeah that seems likely.

practicalli_john20:02:40

Sorry I cant help more. However, if you are doing Java or Scala development with Emacs you may be interested in http://ensime.org/

twashing20:02:40

Oh it’s all good. I’m just trying install eclim, because the Spacemancs Java layer seems to need it. https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/java

twashing21:02:17

Oh sorry. Separate problem (installing eclim)

practicalli_john21:02:05

Ensime gives you some of the features you get from a Java IDE, so possibly an alternative to Eclim (not very experienced with either, but I know one of the maintainers of Ensime)

twashing21:02:03

I’m curious as to how others are installing Eclim, as it seem to be failing on my machine: MacOS 10.12.2 (edit)

twashing21:02:09

@jr0cket Hmm, I’ve had success using Ensime with Scala. But if I do that, then I couldn’t use Spacemacs’ Java layer (which requires Eclim).

practicalli_john21:02:58

Sorry, again not sure. The Ensime install doent seem to require any packages except for vim (I could be reading that wrong) and uses electric-indent-mode for indenting (built into emacs 24 onwards). There is a suggestion in the install of how to set up Ensime in Spacemacs.

practicalli_john21:02:07

Gotta go, good luck.

twashing21:02:52

Ah nice @jr0cket . Will check that out. Thanks!

twashing21:02:55

Just an FYI for anyone trying to install eclim for Java layer support. I had an issue trying to install eclim on my MacOS 10.12.2. - http://eclim.org - https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/java#layer-installation This issue helped me get most of the way there. - https://github.com/ervandew/eclim/issues/479 And these are some other issues that give context to why you would want to do the abouve. - https://github.com/ervandew/eclim/issues/484 - https://github.com/ervandew/eclim/issues/428