Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate at point on following line /Question / Help a bro? #145

Open
sdistefano opened this issue Nov 8, 2021 · 1 comment
Open

Translate at point on following line /Question / Help a bro? #145

sdistefano opened this issue Nov 8, 2021 · 1 comment

Comments

@sdistefano
Copy link

sdistefano commented Nov 8, 2021

I'm trying to have a function that will take the current line and add a new line after it that has the translated text. I'm a total noob (second day) to emacs. This is what I have so far:

(defun google-translate-at-point2()
  ""
  (interactive)
    (google-translate-at-point)
    (save-excursion
         (end-of-line)
         (open-line 1)
    )
    (forward-line)
  )

Any help would be very much appreciated!

@stardiviner
Copy link
Collaborator

I suggest you learn a little Elisp skill. So that you can construct function based on your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants