Skip to main content
11 votes

Expanding Dired to show subdirectories/files?

In Dired you can include a subdirectory using i, with the cursor on the subdir line. You can do likewise on a subdir line within a subdir listing, so you can list any number of levels of any number ...
Drew's user avatar
  • 78.1k
10 votes
Accepted

How to compile and run a C++ file?

That's a lot of questions, but I will try to answer them in such a way that you can look up all the answers in detail. Emacs is primarily a text editor; you will use it to edit your C++ files. ...
db48x's user avatar
  • 18.5k
10 votes

Suitability of Emacs as a Java development IDE

At this point(2018), LSP Java(https://github.com/emacs-lsp/lsp-java) is pretty good. Few of the features: Autocomplete Refactoring (extract method, rename, implement interface, extract local, extract ...
Ivan Dimitrov Yonchovski's user avatar
9 votes
Accepted

How to customize the line character length in elpy?

If you want to customize per project basis, you can create a setup.cfg with custom config like this [flake8] max-line-length = 160 If you want to change this globally, you can change flake8 config as ...
Chillar Anand's user avatar
5 votes
Accepted

Is there a package for semantic refactoring

Python: https://github.com/python-rope/ropemacs https://github.com/jorgenschaefer/elpy (also base on rope) C++: https://github.com/tuhdo/semantic-refactor https://github.com/thoni56/c-xrefactory
djangoliv's user avatar
  • 3,254
4 votes

Expanding Dired to show subdirectories/files?

dired-subtree is an option and looks as follows: If using use-package, you can enable in your init.el and bind to TAB and SHIFT-TAB with: (use-package dired-subtree :ensure t :after dired :...
Alvaro's user avatar
  • 106
4 votes
Accepted

emacs home made perspective: source + eshell + compilation

Here is a bare-bones minimum viable function, which I hope does what you want. (defun wjh3pane-create-3pane-layout () "Create 3-pane layout of windows in the current frame. Layout is as follows: ...
deprecated's user avatar
  • 2,845
3 votes
Accepted

Setting gud-gdb-command-name in .dir-locals.el

The general format for .dir-locals.el is described here: C-hig (emacs)Directory Variables http://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html http://www.emacswiki.org/...
phils's user avatar
  • 51.9k
3 votes
Accepted

How to load an Idris file that depends on a package?

The layer for idris in Spacemacs use this https://github.com/idris-hackers/idris-mode. So for my part, using spacemacs and helm, I succesfully load a file using contrib using the following shortcut: ...
Luc DUZAN's user avatar
  • 146
3 votes

Emacs "context" plugin for switching between different tasks in one project without loosing concentration

Dunno exactly what constitutes a "project" in your context, but have a look at desktop bookmarks, with Bookmark+. An Emacs desktop records (and subsequently restores) the kinds of thing you mention: ...
Drew's user avatar
  • 78.1k
2 votes

Expanding Dired to show subdirectories/files?

http://cedet.sourceforge.net/speedbar.shtml Speedbar is an Emacs Lisp program which allows you to create a special skinny frame with a specialized directory listing in it. This listing will have ...
Low Powah's user avatar
  • 317
2 votes
Accepted

How to proper install and configure js2-mode via use-package declaration?

If it works correctly then it is correct. Otherwise it is wrong. Why do you need our approval? Also note that js2-mode is included with Emacs; there is no longer any need to install it from ELPA.
db48x's user avatar
  • 18.5k
2 votes

How does company mode work?

Look into lsp or eglot. They provide completion candidates for company. Personally, I used eglot now with vertico completion and it "just works" since i plumbs iself into completion-at-...
RichieHH's user avatar
  • 883
2 votes

How to set up pyrightconfig in lsp-pyright?

You can include additional Python source paths with lsp-pyright-extra-paths. Here is my pyrightconfig.json for a project. { "exclude": ["**/node_modules", "**/__pycache__&...
Swarnendu Biswas's user avatar
1 vote

How to load an Idris file that depends on a package?

After trying @luc-duzan's answer, Spacemacs prompted me for whether to persist the setting. When I selected yes, the following was added to my buffer: -- Local Variables: -- idris-load-packages: ("...
Keith Pinson's user avatar
1 vote
Accepted

Why Emacs as an editor leaves all the ad hoc packages development work to the community rather than professional parties?

What is the Emacs development team improving on? You can follow the development/mailing lists to find out: https://lists.gnu.org/archive/html/emacs-devel/ https://lists.gnu.org/archive/html/bug-gnu-...
phils's user avatar
  • 51.9k
1 vote
Accepted

overview of functions, methods within a file

LSP - treemacs has what you want
Davidbrcz's user avatar
  • 126
1 vote

overview of functions, methods within a file

Look for the Speedbar stuff, and the lsp-ui package.
db48x's user avatar
  • 18.5k
1 vote

Is there a package for semantic refactoring

To answer my own question years later: support for LSP via eglot takes care of most of my problems.
Alex Petrosyan's user avatar
1 vote

Jump to definition of function or class in one of the include files?

The following code demonstrates the direct use of semantic for jumping to tags. Make sure you configured semantic-c-dependency-system-include-path right. The following code displays the tag in ...
Tobias's user avatar
  • 33.4k
1 vote

Sequence of packages to be installed to make emacs an ide for c/c++

Here is the easy solution for newbies. It works at Linux/OSX/Cygwin (should work at Windows, but I don't develop at Windows). The setup is minimum. You need install GNU Global and two Emacs plugins: ...
chen bin's user avatar
  • 4,897
1 vote

Configuring Emacs as a CMake based C/C++ IDE

Both packages are available in melpa. You can follow instructions on how to add this repo: (require 'package) ;; You might already have this line (add-to-list 'package-archives '("melpa" . "...
Felipe Lema's user avatar
1 vote

C Source code browsing similar to eclipse

For C developers, I suggest ctags. The problem of GNU Gloal is that it treats the function declaration as reference. That's awkward if you want to check the declaration of function ONLY. C++ code ...
chen bin's user avatar
  • 4,897
1 vote

C Source code browsing similar to eclipse

I could think of two solutions as of now, Speedbar mode - A separate frame pop-ups with the list of files/folders related to the current project. More Info (https://www.emacswiki.org/emacs/SpeedBar). ...
Hariharan's user avatar
  • 483

Only top scored, non community-wiki answers of a minimum length are eligible