Questions tagged [development]

Using Emacs to develop programs in other languages.

13 questions
30
votes
10 answers

How do use Emacs to look up a function in Python?

What is the easiest way to configure Emacs to be able to look up where a function is defined? I want to highlight it in Emacs and press a key combo to look up where the source of the function is. Can you also find out where a specific function is…
Low Kian Seong
  • 413
  • 1
  • 4
  • 6
20
votes
1 answer

How to automatically create neat C comment blocks while typing?

Some code editors such as eclipse automatically form neat blocks when you start typing a multi-line comment: Is there some package or another way to do this in emacs too? Edit: To clarify: I do not want a key-combination that inserts a comment…
Geier
  • 692
  • 5
  • 15
16
votes
3 answers

Closing all pending parenthesis

When writing lisp codes, sometimes I'm deep in a nested expression and all I want is to insert all the missing closing parenthesis. Right now I'm just inserting them until I get a mismatched paren, but it's not very efficient. Is there any command…
rlazo
  • 983
  • 8
  • 13
9
votes
1 answer

How can I set Emacs up for iOS development with Swift?

I'm going to be doing a bit of iOS work soon, using Swift (yay!). Unfortunately, this usually involves xcode (boo!). How can I set Emacs up to build iOS apps with Swift? Ideally, they would run on my testing device automatically. More advanced…
Tikhon Jelvis
  • 6,152
  • 2
  • 27
  • 40
6
votes
1 answer

GNU Global + ggtags and helm + helm+gtags

In http://tuhdo.github.io/c-ide.html#orgheadline2 which is about "Prerequisite" Or, helm + helm-gtags. What does "Or" imply as the alternative to the combination "helm + helm+gtags"? Is the alternative GNU Global GNU Global + ggtags What are…
Tim
  • 4,987
  • 7
  • 31
  • 60
4
votes
1 answer

How to make org-babel call all remote code blocks under a specific headline?

For example, I have following org file: ***** user level ****** copy system service file At first copy system's systemd service file to systemd user level. by check it out, and tangle it to target file. #+begin_src shell :results code :wrap "src…
stardiviner
  • 1,888
  • 26
  • 45
3
votes
1 answer

How to call org-lint against org-mode file from command-line

I am configuring a CI/CD pipeline to process org-mode files into documentation, source code, and other file formats. I would like to add a call to org-lint to do basic syntax checking against org files as part pipeline. Unfortunately I haven't be…
2
votes
2 answers

How to use clojure-lsp in Emacs?

I downloaded clojure-lsp (https://github.com/snoe/clojure-lsp) and tried to add it as a client in my init.el: (use-package lsp-mode :ensure t) (use-package lsp-ui :ensure t :config (add-hook 'lsp-mode-hook #'lsp-ui-mode)) …
Arne
  • 409
  • 3
  • 12
2
votes
2 answers

Command to automatically define a resource variable in an Android project

When coding Android projects, resource variables are somewhat cumbersome to define, as they involve visiting a file far away in the directory structure and writing xml(!). Say I want to define a string resource called street. I'll need to: Visit…
Malabarba
  • 22,878
  • 6
  • 78
  • 163
2
votes
1 answer

Warning about modification of files which should be static

Some files in Emacs should not be modified, for example: an .el.gz library file which is expected to behave "properly" an external extension, which will be overwritten on update Anyway, there are ways to change default behaviours but not through…
Łukasz Gruner
  • 1,008
  • 8
  • 16
1
vote
1 answer

How are program arguments handled when a program/script is launched from Emacs?

I often find myself wondering how people handle program arguments when they are developing with Emacs. Let's say we have a Python script test.py and launching it requires supplying arguments, e.g. --fname example.txt. Most major modes feature a…
1
vote
2 answers

How to set up hotkey for compiling c code and run the compiled file?

I used to use tmux with vim to write codes in C/C++. So I split the screen into two in tmux and then press F3 to "make" the file. And then I can press F4 to run the "main" file in the next subscreen. Now I have switched to emacs and am wondering if…
Jon
  • 11
  • 1
  • 2
1
vote
1 answer

Emacs (semantic) include not working for relative personal includes

This works: Running semantic-decoration-include-visit (opens the included header): #include #include "/usr/include/gtk-3.0/gtk/gtk.h" Works well. This does not: But if I run it on a relative gtk path: #include Then I…
Leo Ufimtsev
  • 4,488
  • 3
  • 22
  • 45